aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/trace-event-scripting.c
diff options
context:
space:
mode:
authorBenjamin Tissoires <[email protected]>2014-09-02 15:50:43 -0400
committerJiri Kosina <[email protected]>2014-09-03 23:46:09 +0200
commite4cf19ffe060e75d34c007565d0aef7189ec654e (patch)
treec18319e8e323b883689c68711674a1de828ee233 /tools/perf/util/trace-event-scripting.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 <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions