Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259986
b: refs/heads/master
c: 8547d4c
h: refs/heads/master
v: v3
  • Loading branch information
Tobias Klauser authored and Greg Kroah-Hartman committed Jul 6, 2011
1 parent bffc63e commit de25d38
Show file tree
Hide file tree
Showing 2 changed files with 3 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: c88f9906c36de61a59a99e109ff04d5b0a4a29d1
refs/heads/master: 8547d4cc2b616e4f1dafebe2c673fc986422b506
4 changes: 2 additions & 2 deletions trunk/drivers/staging/usbip/vhci_hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -860,9 +860,9 @@ 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 && !task_is_dead(vdev->ud.tcp_rx))
kthread_stop(vdev->ud.tcp_rx);
if (vdev->ud.tcp_tx)
if (vdev->ud.tcp_tx && !task_is_dead(vdev->ud.tcp_tx))
kthread_stop(vdev->ud.tcp_tx);

pr_info("stop threads\n");
Expand Down

0 comments on commit de25d38

Please sign in to comment.