Commit aa12242f authored by Jonghwan Choi's avatar Jonghwan Choi Committed by Samuel Ortiz

mfd: wm8350 variable dereferenced before check

Remove "wm8350->irq_base = pdata->irq_base" to avoid
null pointer exception and wm8350->irq_base got from
irq_alloc_descs().
Signed-off-by: default avatarJonghwan Choi <jhbird.choi@samsung.com>
Acked-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent b01543df
...@@ -496,7 +496,6 @@ int wm8350_irq_init(struct wm8350 *wm8350, int irq, ...@@ -496,7 +496,6 @@ int wm8350_irq_init(struct wm8350 *wm8350, int irq,
mutex_init(&wm8350->irq_lock); mutex_init(&wm8350->irq_lock);
wm8350->chip_irq = irq; wm8350->chip_irq = irq;
wm8350->irq_base = pdata->irq_base;
if (pdata && pdata->irq_base > 0) if (pdata && pdata->irq_base > 0)
irq_base = pdata->irq_base; irq_base = pdata->irq_base;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment