]> asedeno.scripts.mit.edu Git - linux.git/commit
HID: wacom: use devm_kasprintf for allocating the name of the remote
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 13 Jul 2016 16:05:57 +0000 (18:05 +0200)
committerJiri Kosina <jkosina@suse.cz>
Fri, 5 Aug 2016 11:39:14 +0000 (13:39 +0200)
commitc1f5409b74c14ac021ef847e034356c904bc7882
tree4cad6aa02d379cd112594e8757411c0ea49a487c
parent2df68a8864883ff006b76f50dfc32fd230247ef9
HID: wacom: use devm_kasprintf for allocating the name of the remote

The sysfs group was indeed removed by kobject_put(wacom->remote_dir) in
wacom_remove(), but the name of the group was never freed.

Also remove the misplaced kobject_put(wacom->remote_dir) in the error
path of wacom_remote_create_attr_group().

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Acked-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_sys.c