mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 06:25:52 +02:00
USB: fix usb_get_configuration bug
This commit is contained in:
parent
fca83b70fe
commit
c653a9c6da
|
|
@ -704,7 +704,7 @@ int usb_get_configuration(struct usb_device *dev)
|
|||
"descriptor/%s: %d\n", cfgno, "start", result);
|
||||
dev_err(ddev, "chopping to %d config(s)\n", cfgno);
|
||||
dev->descriptor.bNumConfigurations = cfgno;
|
||||
break;
|
||||
goto err;
|
||||
} else if (result < 4) {
|
||||
dev_err(ddev, "config index %d descriptor too short "
|
||||
"(expected %i, got %i)\n", cfgno,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user