diff options
Diffstat (limited to 'drivers/hid/usbhid')
-rw-r--r-- | drivers/hid/usbhid/hid-core.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/hid/usbhid/hid-core.c b/drivers/hid/usbhid/hid-core.c index dedd8e4e5c6d..8e0c4bf94ebc 100644 --- a/drivers/hid/usbhid/hid-core.c +++ b/drivers/hid/usbhid/hid-core.c | |||
@@ -1415,20 +1415,20 @@ static int hid_post_reset(struct usb_interface *intf) | |||
1415 | * configuration descriptors passed, we already know that | 1415 | * configuration descriptors passed, we already know that |
1416 | * the size of the HID report descriptor has not changed. | 1416 | * the size of the HID report descriptor has not changed. |
1417 | */ | 1417 | */ |
1418 | rdesc = kmalloc(hid->rsize, GFP_KERNEL); | 1418 | rdesc = kmalloc(hid->dev_rsize, GFP_KERNEL); |
1419 | if (!rdesc) { | 1419 | if (!rdesc) { |
1420 | dbg_hid("couldn't allocate rdesc memory (post_reset)\n"); | 1420 | dbg_hid("couldn't allocate rdesc memory (post_reset)\n"); |
1421 | return 1; | 1421 | return 1; |
1422 | } | 1422 | } |
1423 | status = hid_get_class_descriptor(dev, | 1423 | status = hid_get_class_descriptor(dev, |
1424 | interface->desc.bInterfaceNumber, | 1424 | interface->desc.bInterfaceNumber, |
1425 | HID_DT_REPORT, rdesc, hid->rsize); | 1425 | HID_DT_REPORT, rdesc, hid->dev_rsize); |
1426 | if (status < 0) { | 1426 | if (status < 0) { |
1427 | dbg_hid("reading report descriptor failed (post_reset)\n"); | 1427 | dbg_hid("reading report descriptor failed (post_reset)\n"); |
1428 | kfree(rdesc); | 1428 | kfree(rdesc); |
1429 | return 1; | 1429 | return 1; |
1430 | } | 1430 | } |
1431 | status = memcmp(rdesc, hid->rdesc, hid->rsize); | 1431 | status = memcmp(rdesc, hid->dev_rdesc, hid->dev_rsize); |
1432 | kfree(rdesc); | 1432 | kfree(rdesc); |
1433 | if (status != 0) { | 1433 | if (status != 0) { |
1434 | dbg_hid("report descriptor changed\n"); | 1434 | dbg_hid("report descriptor changed\n"); |