diff options
| -rw-r--r-- | drivers/usb/serial/opticon.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/serial/opticon.c b/drivers/usb/serial/opticon.c index c03fdc0242dd..4cdb975caa89 100644 --- a/drivers/usb/serial/opticon.c +++ b/drivers/usb/serial/opticon.c | |||
| @@ -502,7 +502,8 @@ static int opticon_resume(struct usb_interface *intf) | |||
| 502 | int result; | 502 | int result; |
| 503 | 503 | ||
| 504 | mutex_lock(&port->port.mutex); | 504 | mutex_lock(&port->port.mutex); |
| 505 | if (port->port.count) | 505 | /* This is protected by the port mutex against close/open */ |
| 506 | if (test_bit(ASYNCB_INITIALIZED, &port->port.flags)) | ||
| 506 | result = usb_submit_urb(priv->bulk_read_urb, GFP_NOIO); | 507 | result = usb_submit_urb(priv->bulk_read_urb, GFP_NOIO); |
| 507 | else | 508 | else |
| 508 | result = 0; | 509 | result = 0; |
