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

Signed-off-by: Jonghwan Choi <[email protected]>
Cc: Donggeun Kim <[email protected]>
Cc: Kyungmin Park <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
Jonghwan Choi 2011-10-31 17:11:09 -07:00 • committed by Linus Torvalds
commit e58a0f89b2

View file

@ -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;