• Mike Dunn's avatar
    Input: pxa27x_keypad - fix NULL pointer dereference · 049d75f7
    Mike Dunn authored
    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: default avatarMike Dunn <mikedunn@newsguy.com>
    Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
    049d75f7
pxa27x_keypad.c 23.2 KB