projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a230cd5
)
HID: wacom: Release device resource data obtained by devres_alloc()
author
Arvind Yadav
<arvind.yadav.cs@gmail.com>
Tue, 24 Apr 2018 08:03:03 +0000
(13:33 +0530)
committer
Jiri Kosina
<jkosina@suse.cz>
Wed, 25 Apr 2018 08:50:57 +0000
(10:50 +0200)
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>
drivers/hid/wacom_sys.c
patch
|
blob
|
history
diff --git
a/drivers/hid/wacom_sys.c
b/drivers/hid/wacom_sys.c
index
b54ef1f
..
ee7a37e
100644
(file)
--- a/
drivers/hid/wacom_sys.c
+++ b/
drivers/hid/wacom_sys.c
@@
-1213,8
+1213,10
@@
static int __wacom_devm_sysfs_create_group(struct wacom *wacom,
devres->root = root;
error = sysfs_create_group(devres->root, group);
- if (error)
+ if (error) {
+ devres_free(devres);
return error;
+ }
devres_add(&wacom->hdev->dev, devres);