git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'for-4.15/wacom' into for-linus
[sfrench/cifs-2.6.git]
/
drivers
/
hid
/
wacom_sys.c
diff --git
a/drivers/hid/wacom_sys.c
b/drivers/hid/wacom_sys.c
index ab3178bef0b699eeb63eb3444a086295038a5b94..ee71ad9b6cc1693e14a585848ca9ad3289f06454 100644
(file)
--- a/
drivers/hid/wacom_sys.c
+++ b/
drivers/hid/wacom_sys.c
@@
-675,8
+675,10
@@
static struct wacom_hdev_data *wacom_get_hdev_data(struct hid_device *hdev)
/* Try to find an already-probed interface from the same device */
list_for_each_entry(data, &wacom_udev_list, list) {
/* Try to find an already-probed interface from the same device */
list_for_each_entry(data, &wacom_udev_list, list) {
- if (compare_device_paths(hdev, data->dev, '/'))
+ if (compare_device_paths(hdev, data->dev, '/')) {
+ kref_get(&data->kref);
return data;
return data;
+ }
}
/* Fallback to finding devices that appear to be "siblings" */
}
/* Fallback to finding devices that appear to be "siblings" */