diff options
author | Jonghwan Choi <jhbird.choi@samsung.com> | 2011-10-31 17:11:09 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-10-31 17:30:53 -0700 |
commit | e58a0f89b25a2299374176d5c37aa89b326681e6 (patch) | |
tree | d68ea1bc15ac9684982d0023de277fc6901e77e3 /drivers/misc | |
parent | ec400c9fab99d16a491cea17d27d0c6a5780b97c (diff) | |
download | linux-3.10-e58a0f89b25a2299374176d5c37aa89b326681e6.tar.gz linux-3.10-e58a0f89b25a2299374176d5c37aa89b326681e6.tar.bz2 linux-3.10-e58a0f89b25a2299374176d5c37aa89b326681e6.zip |
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')
-rw-r--r-- | drivers/misc/fsa9480.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/misc/fsa9480.c b/drivers/misc/fsa9480.c index 27dc0d21aaf..f6586d53e1a 100644 --- a/drivers/misc/fsa9480.c +++ b/drivers/misc/fsa9480.c @@ -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; |