aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb
diff options
context:
space:
mode:
authorDave Jones <davej@codemonkey.org.uk>2016-05-31 11:25:09 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-08-30 13:06:43 -0400
commit1328f7b928e3fc41e019903a56d7253b04d7e4de (patch)
treec7b787b6041038dd3342392be8ab561b45b1de8a /drivers/usb
parent1aaaa9acaea1dd2878d6c92b45e4c117ef425baf (diff)
usbip: vudc: Fix apparent cut-n-paste error
Coverity picked up that this looks like a cut-n-paste from an almost identical sequence below that didn't get its variable renamed. Signed-off-by: Dave Jones <davej@codemonkey.org.uk> Reviewed-by: Krzysztof Opasiak <k.opasiak@samsung.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r--drivers/usb/usbip/vudc_dev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/usbip/vudc_dev.c b/drivers/usb/usbip/vudc_dev.c
index 8994a13819ab..7091848df6c8 100644
--- a/drivers/usb/usbip/vudc_dev.c
+++ b/drivers/usb/usbip/vudc_dev.c
@@ -450,7 +450,7 @@ static void vudc_shutdown(struct usbip_device *ud)
450 if (ud->tcp_socket) 450 if (ud->tcp_socket)
451 kernel_sock_shutdown(ud->tcp_socket, SHUT_RDWR); 451 kernel_sock_shutdown(ud->tcp_socket, SHUT_RDWR);
452 452
453 if (ud->tcp_tx) { 453 if (ud->tcp_rx) {
454 kthread_stop_put(ud->tcp_rx); 454 kthread_stop_put(ud->tcp_rx);
455 ud->tcp_rx = NULL; 455 ud->tcp_rx = NULL;
456 } 456 }