diff options
author | Alan Stern <stern@rowland.harvard.edu> | 2008-03-03 15:16:04 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-04-25 00:16:33 -0400 |
commit | eb764c4be1e5db3ee34df5745e98cf2f148c7320 (patch) | |
tree | f434cf49540ab6ea2c7fae6490a693916c2e5501 /Documentation | |
parent | feccc30d90155bcbc937f87643182a43d25873eb (diff) |
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>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/usb/persist.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/usb/persist.txt b/Documentation/usb/persist.txt index bea58dbd30fe..d56cb1a11550 100644 --- a/Documentation/usb/persist.txt +++ b/Documentation/usb/persist.txt | |||
@@ -136,10 +136,10 @@ aren't guaranteed to be 100% accurate. | |||
136 | 136 | ||
137 | If you replace one USB device with another of the same type (same | 137 | If you replace one USB device with another of the same type (same |
138 | manufacturer, same IDs, and so on) there's an excellent chance the | 138 | manufacturer, same IDs, and so on) there's an excellent chance the |
139 | kernel won't detect the change. Serial numbers and other strings are | 139 | kernel won't detect the change. The serial number string and other |
140 | not compared. In many cases it wouldn't help if they were, because | 140 | descriptors are compared with the kernel's stored values, but this |
141 | manufacturers frequently omit serial numbers entirely in their | 141 | might not help since manufacturers frequently omit serial numbers |
142 | devices. | 142 | entirely in their devices. |
143 | 143 | ||
144 | Furthermore it's quite possible to leave a USB device exactly the same | 144 | Furthermore it's quite possible to leave a USB device exactly the same |
145 | while changing its media. If you replace the flash memory card in a | 145 | while changing its media. If you replace the flash memory card in a |