Input: twl4030_keypad - fix potential NULL dereference in twl4030_kp_probe()
We should first check whether platform data is NULL or not, before dereferencing it to get the keymap. Signed-off-by: NAxel Lin <axel.lin@gmail.com> Reviewed-by: NFelipe Balbi <balbi@ti.com> Signed-off-by: NDmitry Torokhov <dtor@mail.ru>
Showing
想要评论请 注册 或 登录