summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-belkin.c
diff options
context:
space:
mode:
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>2014-09-02 15:50:43 -0400
committerJiri Kosina <jkosina@suse.cz>2014-09-03 23:46:09 +0200
commite4cf19ffe060e75d34c007565d0aef7189ec654e (patch)
treec18319e8e323b883689c68711674a1de828ee233 /drivers/hid/hid-belkin.c
parent844817e47eef14141cf59b8d5ac08dd11c0a9189 (diff)
HID: thingm: set the proper error code before leaving
In case of an unsupported firmware, the driver bails out without setting the LEDs interfaces, but forget to set the proper error code. err is then still equal to 0 and the hid subsytem consider the device to be in perfect shape. When removing it, thingm_remove() tries to unbind the rgb LEDs which has not been created, leading to a segfault. Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-belkin.c')
0 files changed, 0 insertions, 0 deletions