lkml.org 
[lkml]   [2012]   [Sep]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] usbhid: call report_fixup before comparing descriptors
Hi Kevin,

> @@ -1436,6 +1436,10 @@ static int hid_post_reset(struct usb_int
> kfree(rdesc);
> return 1;
> }
> +
> + if (hid->driver && hid->driver->report_fixup)
> + rdesc = hid->driver->report_fixup(hid, rdesc, &status);
> +
> status = memcmp(rdesc, hid->rdesc, hid->rsize);

You can use dev_rdesc here instead.

Thanks,
Henrik


\
 
 \ /
  Last update: 2012-09-18 18:41    [W:0.059 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site