]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
HID: asus: Add hid_is_using_ll_driver(usb_hid_driver) check
authorHans de Goede <hdegoede@redhat.com>
Tue, 28 Apr 2020 14:22:51 +0000 (16:22 +0200)
committerJiri Kosina <jkosina@suse.cz>
Wed, 6 May 2020 09:40:03 +0000 (11:40 +0200)
commit4bc43a421218b6cebc7c926fea001b166ea3677c
tree668145e6f37ed193213e626fc42ae4d5e52a4347
parenta80b2f309883cb021ac05f992f785f15d7d748cf
HID: asus: Add hid_is_using_ll_driver(usb_hid_driver) check

Add a hid_is_using_ll_driver(usb_hid_driver) check to ensure that the
parent device is an usb_interface, before casting the parent device
pointer to an usb_interface pointer with to_usb_interface().

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-asus.c