Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 130459
b: refs/heads/master
c: 05d6d67
h: refs/heads/master
i:
  130457: b1ed8a1
  130455: 180118c
v: v3
  • Loading branch information
Roel Kluin authored and Greg Kroah-Hartman committed Jan 28, 2009
1 parent c60be4c commit 6906105
Show file tree
Hide file tree
Showing 2 changed files with 15 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: e48d94dac7eef16b4a4f246bf7b8df0f00cc0aec
refs/heads/master: 05d6d677ab4b975697c6a987f1dffdc55d61a160
16 changes: 14 additions & 2 deletions trunk/drivers/staging/usbip/usbip_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -406,8 +406,20 @@ void usbip_start_threads(struct usbip_device *ud)
/*
* threads are invoked per one device (per one connection).
*/
kernel_thread(usbip_thread, (void *)&ud->tcp_rx, 0);
kernel_thread(usbip_thread, (void *)&ud->tcp_tx, 0);
int retval;

retval = kernel_thread(usbip_thread, (void *)&ud->tcp_rx, 0);
if (retval < 0) {
printk(KERN_ERR "Creating tcp_rx thread for ud %p failed.\n",
ud);
return;
}
retval = kernel_thread(usbip_thread, (void *)&ud->tcp_tx, 0);
if (retval < 0) {
printk(KERN_ERR "Creating tcp_tx thread for ud %p failed.\n",
ud);
return;
}

/* confirm threads are starting */
wait_for_completion(&ud->tcp_rx.thread_done);
Expand Down

0 comments on commit 6906105

Please sign in to comment.