aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/fsa9480.c
diff options
context:
space:
mode:
authorJonghwan Choi <jhbird.choi@samsung.com>2011-10-31 20:11:09 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2011-10-31 20:30:53 -0400
commite58a0f89b25a2299374176d5c37aa89b326681e6 (patch)
treed68ea1bc15ac9684982d0023de277fc6901e77e3 /drivers/misc/fsa9480.c
parentec400c9fab99d16a491cea17d27d0c6a5780b97c (diff)
driver/misc/fsa9480.c fix potential null-pointer dereference
Signed-off-by: Jonghwan Choi <jhbird.choi@samsung.com> Cc: Donggeun Kim <dg77.kim@samsung.com> Cc: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/misc/fsa9480.c')
-rw-r--r--drivers/misc/fsa9480.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/fsa9480.c b/drivers/misc/fsa9480.c
index 27dc0d21aafa..f6586d53e1a3 100644
--- a/drivers/misc/fsa9480.c
+++ b/drivers/misc/fsa9480.c
@@ -400,7 +400,8 @@ static int fsa9480_irq_init(struct fsa9480_usbsw *usbsw)
400 return ret; 400 return ret;
401 } 401 }
402 402
403 device_init_wakeup(&client->dev, pdata->wakeup); 403 if (pdata)
404 device_init_wakeup(&client->dev, pdata->wakeup);
404 } 405 }
405 406
406 return 0; 407 return 0;