From: Jonghwan Choi Date: Mon, 20 Feb 2012 15:13:43 +0000 (+0100) Subject: mfd: wm8350 variable dereferenced before check X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d2d5cb47e3e7e0f68d33d18ca15e4ac65ca5645b;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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: Jonghwan Choi Acked-by: Mark Brown Signed-off-by: Samuel Ortiz --- diff --git a/drivers/mfd/wm8350-irq.c b/drivers/mfd/wm8350-irq.c index 8a1fafd0bf7d..9fd01bf63c51 100644 --- a/drivers/mfd/wm8350-irq.c +++ b/drivers/mfd/wm8350-irq.c @@ -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;