Skip to content

Commit

Permalink
driver/misc/fsa9480.c fix potential null-pointer dereference
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jonghwan Choi authored and Linus Torvalds committed Nov 1, 2011
1 parent ec400c9 commit e58a0f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/misc/fsa9480.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e58a0f8

Please sign in to comment.