Input: w90p910_keypad - move a dereference below a NULL test
authorJulia Lawall <julia@diku.dk>
Sun, 30 Aug 2009 18:30:48 +0000 (11:30 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sun, 30 Aug 2009 18:55:47 +0000 (11:55 -0700)
commit903b9124eae00edf8a9d6491dab60fcda777aabd
treef7c3b509d24ff30457ee75bd40a5ed58ebfeb771
parent9d8340687c524ce61e3c9c76758c4c81303acfc0
Input: w90p910_keypad - move a dereference below a NULL test

We should first check whether platform data is NULL or not, before
dereferencing it to get the keymap.

Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/keyboard/w90p910_keypad.c