]> git.hungrycats.org Git - linux/commit
[PATCH] USB: Don't ask for string descriptor lengths
authorAlan Stern <stern@rowland.harvard.edu>
Wed, 14 Jul 2004 07:36:54 +0000 (00:36 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 14 Jul 2004 07:36:54 +0000 (00:36 -0700)
commit9506ce58dec973bfd4ec2677c087e7e7ce84608e
treee6ffb407a8bc055016051a28422cee15811325d9
parent5106784cd2e55da6c383dfb2740cb37c0ea20eb8
[PATCH] USB: Don't ask for string descriptor lengths

Okay, here's a revised patch (as332b).  This tries first to ask for 255
bytes, and if that fails then it asks for the length and the full
descriptor.  Hopefully nobody will object to applying this version...

You know, it occurs to me that the have_langid field in usb_device could
easily be eliminated.  Just set string_langid to -1 during initialization
and test for whether or not it is >= 0.  I'll do that some other time.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
drivers/usb/core/message.c