HID: wacom: Release device resource data obtained by devres_alloc()
authorArvind Yadav <arvind.yadav.cs@gmail.com>
Tue, 24 Apr 2018 08:03:03 +0000 (13:33 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Jun 2018 19:02:48 +0000 (04:02 +0900)
commit27e13b330dd2dae63b41855640d2b70517bd67e1
treec95385254453eec84e53d976f6c85faa2f9a14b9
parent2f3ca3908fc06af250172cf08210778cfecb66aa
HID: wacom: Release device resource data obtained by devres_alloc()

[ Upstream commit 097b8f62dd793e08f1732fc74dbb64596c7fbff9 ]

Free device resource data, if __wacom_devm_sysfs_create_group
is not successful.

Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/wacom_sys.c