X-Git-Url: http://git.samba.org/samba.git/?p=sfrench%2Fcifs-2.6.git;a=blobdiff_plain;f=drivers%2Fhid%2Fwacom_sys.c;h=ee71ad9b6cc1693e14a585848ca9ad3289f06454;hp=ab3178bef0b699eeb63eb3444a086295038a5b94;hb=01125b2d1fe9d691333cc90b17a4e2fd5bb908a2;hpb=5b01b3b8b122fde7fbe116803f7863667b4c5beb diff --git a/drivers/hid/wacom_sys.c b/drivers/hid/wacom_sys.c index ab3178bef0b6..ee71ad9b6cc1 100644 --- 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) { - 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" */