Messages in this thread Patch in this message |  | | From | jhbird.choi@samsung ... | | Subject | [PATCH] mfd: variable dereferenced before check | | Date | Fri, 13 Jan 2012 10:40:52 +0900 |
| |
From: Jonghwan Choi <jhbird.choi@samsung.com>
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> --- drivers/mfd/wm8350-irq.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/drivers/mfd/wm8350-irq.c b/drivers/mfd/wm8350-irq.c index 8a1fafd..9fd01bf 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; -- 1.7.1
|  |