diff options
| author | Ingo Molnar <mingo@kernel.org> | 2018-10-23 06:30:19 -0400 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2018-10-23 06:30:19 -0400 |
| commit | dda93b45389f025fd3422d22cc31cc1ea6040305 (patch) | |
| tree | 44a856744843e24ed1baf6ca4edb1be04809a606 /drivers/usb/class | |
| parent | 2e62024c265aa69315ed02835623740030435380 (diff) | |
| parent | b61b8bba18fe2b63d38fdaf9b83de25e2d787dfe (diff) | |
Merge branch 'x86/cache' into perf/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/usb/class')
| -rw-r--r-- | drivers/usb/class/cdc-acm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/usb/class/cdc-acm.c b/drivers/usb/class/cdc-acm.c index f9b40a9dc4d3..bc03b0a690b4 100644 --- a/drivers/usb/class/cdc-acm.c +++ b/drivers/usb/class/cdc-acm.c | |||
| @@ -1514,6 +1514,7 @@ static void acm_disconnect(struct usb_interface *intf) | |||
| 1514 | { | 1514 | { |
| 1515 | struct acm *acm = usb_get_intfdata(intf); | 1515 | struct acm *acm = usb_get_intfdata(intf); |
| 1516 | struct tty_struct *tty; | 1516 | struct tty_struct *tty; |
| 1517 | int i; | ||
| 1517 | 1518 | ||
| 1518 | /* sibling interface is already cleaning up */ | 1519 | /* sibling interface is already cleaning up */ |
| 1519 | if (!acm) | 1520 | if (!acm) |
| @@ -1544,6 +1545,11 @@ static void acm_disconnect(struct usb_interface *intf) | |||
| 1544 | 1545 | ||
| 1545 | tty_unregister_device(acm_tty_driver, acm->minor); | 1546 | tty_unregister_device(acm_tty_driver, acm->minor); |
| 1546 | 1547 | ||
| 1548 | usb_free_urb(acm->ctrlurb); | ||
| 1549 | for (i = 0; i < ACM_NW; i++) | ||
| 1550 | usb_free_urb(acm->wb[i].urb); | ||
| 1551 | for (i = 0; i < acm->rx_buflimit; i++) | ||
| 1552 | usb_free_urb(acm->read_urbs[i]); | ||
| 1547 | acm_write_buffers_free(acm); | 1553 | acm_write_buffers_free(acm); |
| 1548 | usb_free_coherent(acm->dev, acm->ctrlsize, acm->ctrl_buffer, acm->ctrl_dma); | 1554 | usb_free_coherent(acm->dev, acm->ctrlsize, acm->ctrl_buffer, acm->ctrl_dma); |
| 1549 | acm_read_buffers_free(acm); | 1555 | acm_read_buffers_free(acm); |
