Merge branch 'for-4.15/wacom' into for-linus
[sfrench/cifs-2.6.git] / drivers / hid / wacom_sys.c
index ab3178bef0b699eeb63eb3444a086295038a5b94..ee71ad9b6cc1693e14a585848ca9ad3289f06454 100644 (file)
@@ -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) {
-               if (compare_device_paths(hdev, data->dev, '/'))
+               if (compare_device_paths(hdev, data->dev, '/')) {
+                       kref_get(&data->kref);
                        return data;
+               }
        }
 
        /* Fallback to finding devices that appear to be "siblings" */