HID: lenovo-tpkbd: fix leak if tpkbd_probe_tp fails
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 11 Sep 2013 19:56:59 +0000 (21:56 +0200)
committerJiri Kosina <jkosina@suse.cz>
Fri, 13 Sep 2013 13:15:11 +0000 (15:15 +0200)
commit0ccdd9e7476680c16113131264ad6597bd10299d
tree62fd49b0ee3ba38eed79d97fc54762b6da77024b
parent8821f5dc187bdf16cfb32ef5aa8c3035273fa79a
HID: lenovo-tpkbd: fix leak if tpkbd_probe_tp fails

If tpkbd_probe_tp() bails out, the probe() function return an error,
but hid_hw_stop() is never called.

fixes:
https://bugzilla.redhat.com/show_bug.cgi?id=1003998

Cc: stable@vger.kernel.org
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-lenovo-tpkbd.c