summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-realview/realview_pb11mp.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2009-12-02 06:54:35 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2009-12-02 06:57:48 +0100
commit66d2a5952eab875f1286e04f738ef029afdaf013 (patch)
tree6d30e807108ef7d2a56ec43271c45acc357df699 /arch/arm/mach-realview/realview_pb11mp.c
parentInput: gpio_keys - scan gpio state at probe and resume time (diff)
downloadlinux-66d2a5952eab875f1286e04f738ef029afdaf013.tar.xz
linux-66d2a5952eab875f1286e04f738ef029afdaf013.zip
Input: keyboard - fix lack of locking when traversing handler->h_list
Keyboard handler should not attempt to traverse handler->h_list on its own, without any locking, otherwise it races with registering and unregistering of input handles which leads to crashes. Introduce input_handler_for_each_handle() helper that allows safely iterate over all handles attached to a particular handler and switch keyboard handler to use it. Reported-by: Jim Paradis <jparadis@redhat.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'arch/arm/mach-realview/realview_pb11mp.c')
0 files changed, 0 insertions, 0 deletions