Skip to content

Commit

Permalink
mfd: wm8350 variable dereferenced before check
Browse files Browse the repository at this point in the history
Remove "wm8350->irq_base = pdata->irq_base" to avoid
null pointer exception and wm8350->irq_base got from
irq_alloc_descs().

Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com>
Acked-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
  • Loading branch information
Jonghwan Choi authored and Samuel Ortiz committed Feb 20, 2012
1 parent b01543d commit aa12242
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/mfd/wm8350-irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,6 @@ int wm8350_irq_init(struct wm8350 *wm8350, int irq,

mutex_init(&wm8350->irq_lock);
wm8350->chip_irq = irq;
wm8350->irq_base = pdata->irq_base;

if (pdata && pdata->irq_base > 0)
irq_base = pdata->irq_base;
Expand Down

0 comments on commit aa12242

Please sign in to comment.