- Unlock (these files are clean)

- Fix an obvious bug with RtlCompareMemory (thanks to w3seek for spotting this bug)

svn path=/trunk/; revision=21272
This commit is contained in:
Aleksey Bragin 2006-03-09 16:27:20 +00:00
parent a367ae5948
commit 7b42ee2289

View file

@ -1412,7 +1412,7 @@ int usb_physical_reset_device(struct usb_device *dev)
le16_to_cpus(&descriptor->idProduct);
le16_to_cpus(&descriptor->bcdDevice);
if (RtlCompareMemory(&dev->descriptor, descriptor, sizeof(*descriptor))) {
if (RtlCompareMemory(&dev->descriptor, descriptor, sizeof(*descriptor)) != sizeof(*descriptor)) {
kfree(descriptor);
usb_destroy_configuration(dev);