From: Benjamin Tissoires Date: Tue, 2 Sep 2014 19:50:43 +0000 (-0400) Subject: HID: thingm: set the proper error code before leaving X-Git-Tag: fixes-for-v3.18-merge-window~27^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e4cf19ffe060e75d34c007565d0aef7189ec654e;p=pandora-kernel.git 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 Signed-off-by: Jiri Kosina --- Reading git-diff-tree failed