commit | 33143ea1a34d12699e6aa222ba124498abcfe4d1 | [log] [tgz] |
---|---|---|
author | Dmitry Torokhov <dtor@insightbb.com> | Fri Jun 29 01:06:35 2007 -0400 |
committer | Dmitry Torokhov <dtor@insightbb.com> | Fri Jun 29 01:06:35 2007 -0400 |
tree | 5f104ff42e9c964bebd508e9354d5a6468628edd | |
parent | 9f7a60d6e47a70957e5f6676cfe8c83956b08aa6 [diff] |
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 <hidave.darkstar@gmail.com> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>