From: Dmitry Torokhov Date: Fri, 29 Jun 2007 05:06:35 +0000 (-0400) Subject: Input: serio - take drv_mutex in serio_cleanup() X-Git-Tag: v2.6.22~23^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=33143ea1a34d12699e6aa222ba124498abcfe4d1;p=pandora-kernel.git Input: serio - take drv_mutex in serio_cleanup() We need to take serio->drv_mutex in serio_cleanup() to prevent the function from being called while driver is in the middle of attaching to a serio port. Such situation can happen with i8042 and atkbd drivers if user rapidly presses Ctrl-Alt-Del during system startup, and leads to kernel oops. Reported-by: Dave Young Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed