From: Mike Dunn Date: Wed, 18 Sep 2013 15:07:41 +0000 (-0700) Subject: Input: pxa27x_keypad - fix NULL pointer dereference X-Git-Tag: v3.12~14^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=049d75f72d9b1cce0f5ca66ea324f0b5318046eb;p=pandora-kernel.git 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 Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed