From 6906105f40d0fa3f44a270ef0f994b2ea8f47b98 Mon Sep 17 00:00:00 2001 From: Roel Kluin Date: Fri, 19 Dec 2008 23:37:30 +0100 Subject: [PATCH] --- yaml --- r: 130459 b: refs/heads/master c: 05d6d677ab4b975697c6a987f1dffdc55d61a160 h: refs/heads/master i: 130457: b1ed8a162a3e5b4f31a49215bdbf27756b625117 130455: 180118ccc0c266d57c2cf0bb9a5145ab428853e9 v: v3 --- [refs] | 2 +- trunk/drivers/staging/usbip/usbip_common.c | 16 ++++++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/[refs] b/[refs] index 688b9793062f..35088e7a1c1b 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e48d94dac7eef16b4a4f246bf7b8df0f00cc0aec +refs/heads/master: 05d6d677ab4b975697c6a987f1dffdc55d61a160 diff --git a/trunk/drivers/staging/usbip/usbip_common.c b/trunk/drivers/staging/usbip/usbip_common.c index 72e209276ea7..22f93dd0ba03 100644 --- a/trunk/drivers/staging/usbip/usbip_common.c +++ b/trunk/drivers/staging/usbip/usbip_common.c @@ -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);