]> Git Repo - linux.git/commit
HID: rmi: Check that a device is a RMI device before calling RMI functions
authorAndrew Duggan <[email protected]>
Wed, 18 Oct 2017 01:37:36 +0000 (18:37 -0700)
committerJiri Kosina <[email protected]>
Thu, 19 Oct 2017 08:03:50 +0000 (10:03 +0200)
commitef14a4bf0910d06c7e202552914028d4956809cb
tree168d34355b77bdf9cedc918e7fbd2ffd4a28e18d
parent1fc26792b6e3bb270313063a33b6e5ffd315440b
HID: rmi: Check that a device is a RMI device before calling RMI functions

The hid-rmi driver may handle non rmi devices on composite USB devices.
Callbacks need to make sure that the current device is a RMI device before
calling RMI specific functions. Most callbacks already have this check, but
this patch adds checks to the remaining callbacks.

Reported-by: Hendrik Langer <[email protected]>
Tested-by: Hendrik Langer <[email protected]>
Reviewed-by: Benjamin Tissoires <[email protected]>
Signed-off-by: Andrew Duggan <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
drivers/hid/hid-rmi.c
This page took 0.045972 seconds and 4 git commands to generate.