Input: iforce - add sanity checks
authorOliver Neukum <oneukum@suse.com>
Tue, 6 Aug 2019 16:05:55 +0000 (09:05 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 6 Aug 2019 16:10:57 +0000 (09:10 -0700)
commit849f5ae3a513c550cad741c68dd3d7eb2bcc2a2c
tree20c803402338fbae3ffc329294e94f210e8404cf
parent37ad2e343449ced9e41505eae5494bf40f433181
Input: iforce - add sanity checks

The endpoint type should also be checked before a device
is accepted.

Reported-by: syzbot+5efc10c005014d061a74@syzkaller.appspotmail.com
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/joystick/iforce/iforce-usb.c