On Fri, May 07, 2004 at 07:26:31PM +0400, Sergey Vlasov wrote:
> 
> This patch seems to break HIDIOCGUCODE for report_type ==
> HID_REPORT_TYPE_INPUT.  The following patch (for 2.4) fixes it:
> 
> --- linux/drivers/usb/hiddev.c.hiddev-fix-gucode      2004-05-07 19:16:41 +0400
> +++ linux/drivers/usb/hiddev.c        2004-05-07 19:20:39 +0400
> @@ -571,6 +571,7 @@ static int hiddev_ioctl(struct inode *in
>  
>               if (cmd != HIDIOCGUSAGE && 
>                   cmd != HIDIOCGUSAGES &&
> +                 cmd != HIDIOCGUCODE &&
>                   uref->report_type == HID_REPORT_TYPE_INPUT)
>                       return -EINVAL;

Yes you're absolutely right.  Thanks for the fix.
-- 
Debian GNU/Linux 3.0 is out! ( http://www.debian.org/ )
Email:  Herbert Xu ~{PmV>HI~} <[EMAIL PROTECTED]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt


-------------------------------------------------------
This SF.Net email is sponsored by Sleepycat Software
Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to 
deliver higher performing products faster, at low TCO.
http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to