Commit e58a0f89 authored by Jonghwan Choi's avatar Jonghwan Choi Committed by Linus Torvalds

driver/misc/fsa9480.c fix potential null-pointer dereference

Signed-off-by: default avatarJonghwan Choi <jhbird.choi@samsung.com>
Cc: Donggeun Kim <dg77.kim@samsung.com>
Cc: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent ec400c9f
......@@ -400,7 +400,8 @@ static int fsa9480_irq_init(struct fsa9480_usbsw *usbsw)
return ret;
}
device_init_wakeup(&client->dev, pdata->wakeup);
if (pdata)
device_init_wakeup(&client->dev, pdata->wakeup);
}
return 0;
......
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