]> git.baikalelectronics.ru Git - kernel.git/commit
drivers/hid/uhid.c: check write() bitness using in_compat_syscall
authorAndy Lutomirski <luto@kernel.org>
Tue, 22 Mar 2016 21:25:24 +0000 (14:25 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2016 22:36:02 +0000 (15:36 -0700)
commit00e06940536482713aafe15cee6339e5fe0a3a9a
treebb0649b06ba54f11ab41f2c03f63465bed771e8d
parent105f72c67fc021874d5efda6671ab4a28835f911
drivers/hid/uhid.c: check write() bitness using in_compat_syscall

uhid changes the format expected in write() depending on bitness.  It
should check the syscall bitness directly.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: David Herrmann <dh.herrmann@googlemail.com>
Acked-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/hid/uhid.c