Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19192
b: refs/heads/master
c: 86067ee
h: refs/heads/master
v: v3
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Feb 1, 2006
1 parent baf13ae commit 953a048
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 8e695cdbffe66f5d3142a363f47053be9f83a90d
refs/heads/master: 86067eead5a6c6fa413ef5cb59f7129f5ed80292
9 changes: 7 additions & 2 deletions trunk/drivers/usb/class/cdc-acm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1014,8 +1014,13 @@ static void acm_disconnect(struct usb_interface *intf)
}

down(&open_sem);
if (!usb_get_intfdata(intf)) {
up(&open_sem);
return;
}
acm->dev = NULL;
usb_set_intfdata (intf, NULL);
usb_set_intfdata(acm->control, NULL);
usb_set_intfdata(acm->data, NULL);

tasklet_disable(&acm->urb_task);

Expand All @@ -1036,7 +1041,7 @@ static void acm_disconnect(struct usb_interface *intf)
for (i = 0; i < ACM_NRB; i++)
usb_buffer_free(usb_dev, acm->readsize, acm->rb[i].base, acm->rb[i].dma);

usb_driver_release_interface(&acm_driver, acm->data);
usb_driver_release_interface(&acm_driver, intf == acm->control ? acm->data : intf);

if (!acm->used) {
acm_tty_unregister(acm);
Expand Down

0 comments on commit 953a048

Please sign in to comment.