From: Dmitry Torokhov Date: Wed, 2 Dec 2009 05:54:35 +0000 (-0800) Subject: Input: keyboard - fix lack of locking when traversing handler->h_list X-Git-Tag: v2.6.33-rc1~337^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=66d2a5952eab875f1286e04f738ef029afdaf013;p=pandora-kernel.git 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 Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed