Searched hist:"049 d75f72d9b1cce0f5ca66ea324f0b5318046eb" (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/input/keyboard/ |
H A D | pxa27x_keypad.c | diff 049d75f72d9b1cce0f5ca66ea324f0b5318046eb Wed Sep 18 17:07:41 CEST 2013 Mike Dunn <mikedunn@newsguy.com> Input: pxa27x_keypad - fix NULL pointer dereference
A NULL pointer dereference exception occurs in the driver probe function when device tree is used. The pdata pointer will be NULL in this case, but the code dereferences it in all cases. When device tree is used, a platform data structure is allocated and initialized, and in all cases this pointer is copied to the driver's private data, so the variable being tested should be accessed through the driver's private data structure.
Signed-off-by: Mike Dunn <mikedunn@newsguy.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
|