]> git.baikalelectronics.ru Git - kernel.git/commit
Input: make sure input interfaces pin parent input devices
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 1 Apr 2008 04:22:53 +0000 (00:22 -0400)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 1 Apr 2008 04:22:53 +0000 (00:22 -0400)
commit0d529e254258e4295ca5cd83f46037aec7eaba22
tree11fe55cbfb3651fc57e59fc838d1e084f5e63749
parent014b0a553fd80fe3962acc11096562b377a2b0db
Input: make sure input interfaces pin parent input devices

Recent driver core change causes references to parent devices being
dropped early, at device_del() time, as opposed to when all children
are freed. This causes oops in evdev with grabbed devices. Take the
reference to the parent input device ourselves to ensure that it
stays around long enough.

Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/evdev.c
drivers/input/joydev.c
drivers/input/mousedev.c
include/linux/input.h