projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
staging: ozwpan: Check for correct config number.
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
staging
/
ozwpan
/
ozhcd.c
diff --git
a/drivers/staging/ozwpan/ozhcd.c
b/drivers/staging/ozwpan/ozhcd.c
index ab93b74e34be484ae89754717e137488cbc10da4..83ed64c7287210a9a8336a1285065e6fbb9b33a8 100644
(file)
--- a/
drivers/staging/ozwpan/ozhcd.c
+++ b/
drivers/staging/ozwpan/ozhcd.c
@@
-909,7
+909,7
@@
static void oz_hcd_complete_set_interface(struct oz_port *port, struct urb *urb,
struct usb_hcd *hcd = port->ozhcd->hcd;
int rc = 0;
- if (
rcode == 0
) {
+ if (
(rcode == 0) && (port->config_num > 0)
) {
struct usb_host_config *config;
struct usb_host_interface *intf;
oz_dbg(ON, "Set interface %d alt %d\n", if_num, alt);