linux/drivers/input
Dmitry Torokhov 0d87c7228a Input: adp5588-keypad - fix NULL dereference in adp5588_gpio_add()
The kpad structure is assigned to i2c client via i2s_set_clientdata()
at the end of adp5588_probe(), but in adp5588_gpio_add() we tried to
access it (via dev_get_drvdata! which is not nice at all) causing an
oops.

Let's pass pointer to kpad directly into adp5588_gpio_add() and
adp5588_gpio_remove() to avoid accessing driver data before it is
set up.

Also split out building of gpiomap into a separate function to
clear the logic.

Reported-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
2010-08-02 18:34:07 -07:00
..
gameport Merge commit 'v2.6.34-rc6' into core/locking 2010-05-03 09:17:01 +02:00
joystick Input: xpad - remove mouse buttons and axes for dance pads 2010-07-13 09:43:50 -07:00
keyboard Input: adp5588-keypad - fix NULL dereference in adp5588_gpio_add() 2010-08-02 18:34:07 -07:00
misc Input: adxl34x - fix leak and use after free 2010-07-22 23:39:16 -07:00
mouse Input: synaptics - set min/max for finger width 2010-07-19 21:44:38 -07:00
serio Input: i8042 - reset keyboard controller wehen resuming from S2R 2010-07-20 20:32:21 -07:00
tablet Input: wacom - add support for DTU2231 and DTU1631 2010-06-28 01:12:26 -07:00
touchscreen Input: cy8ctmg110 - capacitive touchscreen support 2010-07-31 02:37:17 -07:00
Kconfig Merge branch 'xen/fbdev' of git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen 2009-12-10 09:34:40 -08:00
Makefile Input: add generic support for sparse keymaps 2009-12-07 09:26:35 -08:00
apm-power.c Input: apm-power - fix crash when unloading modules 2008-03-24 11:02:06 -04:00
evbug.c Input: struct device - replace bus_id with dev_name(), dev_set_name() 2008-10-30 09:29:05 -04:00
evdev.c Input: evdev - signal that device is writable in evdev_poll() 2010-07-15 23:53:00 -07:00
ff-core.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
ff-memless.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
fixp-arith.h
input-compat.c Input: refactor evdev 32bit compat to be shareable with uinput 2008-10-27 22:03:42 -04:00
input-compat.h [IA64] Remove COMPAT_IA32 support 2010-02-08 10:42:17 -08:00
input-polldev.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00
input.c Input: change input handlers to use bool when possible 2010-07-15 23:52:33 -07:00
joydev.c Input: change input handlers to use bool when possible 2010-07-15 23:52:33 -07:00
mousedev.c Input: mousedev - signal that device is writable in mousedev_poll() 2010-07-15 23:52:52 -07:00
sparse-keymap.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2010-04-15 11:49:55 -07:00
xen-kbdfront.c include cleanup: Update gfp.h and slab.h includes to prepare for breaking implicit slab.h inclusion from percpu.h 2010-03-30 22:02:32 +09:00