summaryrefslogtreecommitdiffstats
path: root/drivers/hid/usbhid/hid-quirks.c
diff options
context:
space:
mode:
authorJiri Kosina <jkosina@suse.cz>2015-04-09 13:32:35 +0200
committerJiri Kosina <jkosina@suse.cz>2015-04-10 17:32:21 +0200
commit8fec02a73e31407e14986fca67dab48d4f777f0e (patch)
tree8cae498d507f63e429c7e528f6332f6f998b3a47 /drivers/hid/usbhid/hid-quirks.c
parentc627589282213bbef12a482c0b87f23526ceb3f0 (diff)
downloadlinux-8fec02a73e31407e14986fca67dab48d4f777f0e.tar.bz2
HID: debug: fix error handling in hid_debug_events_read()
In the unlikely case of hdev vanishing while hid_debug_events_read() was sleeping, we can't really break out of the case switch as with other cases, as on the way out we'll try to remove ourselves from the hdev waitqueue. Fix this by taking a shortcut exit path and avoiding cleanup that doesn't make sense in case hdev doesn't exist any more anyway. Reported-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/usbhid/hid-quirks.c')
0 files changed, 0 insertions, 0 deletions