]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 1 Oct 2013 16:17:46 +0000 (09:17 -0700)
commit30c1e32f6fb5b48d6fd1625858c25b38af9ee91f
tree72756f15d958d6c32feaa714e8032affce4315d1
parentbe3cdbf50f4f72325d145318d6ce02acad478925
HID: lenovo-tpkbd: fix leak if tpkbd_probe_tp fails

commit 0ccdd9e7476680c16113131264ad6597bd10299d upstream.

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

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-lenovo-tpkbd.c