diff options
author | Jiri Kosina <jkosina@suse.cz> | 2019-04-17 16:39:43 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2019-04-17 16:39:43 +0200 |
commit | 59579a8d173ea727561868bbe989f83b2d24216f (patch) | |
tree | 616b51771e03df1209e3570ccd59213d8a707cda /drivers/hid/hid-core.c | |
parent | e252e0e0028167ea3d1eafa99c2ff9f62c444b0a (diff) |
HID: u2fzero: fail probe if not using USB transport
u2fzero driver is USB-only. Therefore we have to give up in ->probe()
callback in case we're called with non-USB transport driver bound,
otherwise the kernel will crash trying to use USBHID API on a non-USB
transport.
Fixes: 42337b9d4d958("HID: add driver for U2F Zero built-in LED and RNG")
Reported-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-core.c')
0 files changed, 0 insertions, 0 deletions