]> git.baikalelectronics.ru Git - kernel.git/commit
DVB: dvb-usb-remote - fix oops when changing keymap
authorOlaf Kirch <olaf.kirch@oracle.com>
Fri, 13 Apr 2007 05:18:44 +0000 (01:18 -0400)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 14 Apr 2007 01:35:39 +0000 (18:35 -0700)
commitee5b4d207dfbea5572b8ae1df6ce980a3bc399d0
treed8f995c8a1bb51842cd4d7e7c11992498e576a8c
parent59da20d4ef30c259af9da8171a36eba66519f1b9
DVB: dvb-usb-remote - fix oops when changing keymap

DVB USB remotes do not support changing keycode maps but set
input_dev->keycodesize and input_dev->keycodemax without setting
input_dev->keycode. This causes kernel oops when user tries to
look up (or change) current keymap.

While the proper fix would be to make remotes handle keymap changes
we'll just remove keycodemax and keycodesize initialization so
EVIOCGKEYCODE and EVIOCSKEYCODE will simply return -EINVAL.

http://bugzilla.kernel.org/show_bug.cgi?id=8312

Signed-off-by: olaf.kirch@oracle.com
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/media/dvb/dvb-usb/dvb-usb-remote.c