]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
USB: check serial-number string after device reset
authorAlan Stern <stern@rowland.harvard.edu>
Mon, 3 Mar 2008 20:16:04 +0000 (15:16 -0500)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 25 Apr 2008 04:16:33 +0000 (21:16 -0700)
commiteb764c4be1e5db3ee34df5745e98cf2f148c7320
treef434cf49540ab6ea2c7fae6490a693916c2e5501
parentfeccc30d90155bcbc937f87643182a43d25873eb
USB: check serial-number string after device reset

This patch (as1048) extends the descriptor checking after a device is
reset.  Now the SerialNumber string descriptor is compared to its old
value, in addition to the device and configuration descriptors.

As a consequence, the kmalloc() call in usb_string() is now on the
error-handling pathway for usb-storage.  Hence its allocation type is
changed to GFO_NOIO.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Documentation/usb/persist.txt
drivers/usb/core/hub.c
drivers/usb/core/message.c