HID: lenovo: Remove sysfs group on failure path
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Fri, 29 May 2015 00:39:31 +0000 (03:39 +0300)
committerJiri Kosina <jkosina@suse.cz>
Fri, 29 May 2015 14:30:13 +0000 (16:30 +0200)
commitb721260085533a9bead1fd853c0aead7d82ce763
treeb38148a446b694dfa7fa2af617df8b42d01ff911
parent323ddaa84f003a0c1d49f3ce5d106bc3cef070d5
HID: lenovo: Remove sysfs group on failure path

There is no sysfs_group_remove() on failure path in lenovo_probe_tpkbd().

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-lenovo.c