]> git.baikalelectronics.ru Git - kernel.git/commit
HID: holtek: test for sanity of intfdata
authorOliver Neukum <oneukum@suse.com>
Thu, 25 Jul 2019 13:13:33 +0000 (15:13 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 5 Aug 2019 12:18:42 +0000 (14:18 +0200)
commit3f95bfbd5e890d6a38e61fa26defc1c0a27d1952
tree6af44df09f589358eb31188d19bdeaf756c200f2
parentabd574d04025c18bf7d05c0dce65936b1efff7d0
HID: holtek: test for sanity of intfdata

The ioctl handler uses the intfdata of a second interface,
which may not be present in a broken or malicious device, hence
the intfdata needs to be checked for NULL.

[jkosina@suse.cz: fix newly added spurious space]
Reported-by: syzbot+965152643a75a56737be@syzkaller.appspotmail.com
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-holtek-kbd.c