commit | c1f5409b74c14ac021ef847e034356c904bc7882 | [log] [tgz] |
---|---|---|
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | Wed Jul 13 18:05:57 2016 +0200 |
committer | Jiri Kosina <jkosina@suse.cz> | Fri Aug 05 13:39:14 2016 +0200 |
tree | 4cad6aa02d379cd112594e8757411c0ea49a487c | |
parent | 2df68a8864883ff006b76f50dfc32fd230247ef9 [diff] |
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>