Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 325435
b: refs/heads/master
c: cbf7d12
h: refs/heads/master
i:
  325433: 3627da6
  325431: 9dda8b0
v: v3
  • Loading branch information
navin authored and Greg Kroah-Hartman committed Sep 21, 2012
1 parent 6546a93 commit 9310683
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: b7caecb8c93c0112c060f60f6e0c195da054e309
refs/heads/master: cbf7d122cc50bd88cb9fd745c8341a009de0796d
9 changes: 6 additions & 3 deletions trunk/drivers/staging/usbip/vhci_hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,11 +814,14 @@ static void vhci_shutdown_connection(struct usbip_device *ud)
}

/* kill threads related to this sdev, if v.c. exists */
if (vdev->ud.tcp_rx)
if (vdev->ud.tcp_rx) {
kthread_stop_put(vdev->ud.tcp_rx);
if (vdev->ud.tcp_tx)
vdev->ud.tcp_rx = NULL;
}
if (vdev->ud.tcp_tx) {
kthread_stop_put(vdev->ud.tcp_tx);

vdev->ud.tcp_tx = NULL;
}
pr_info("stop threads\n");

/* active connection is closed */
Expand Down

0 comments on commit 9310683

Please sign in to comment.