Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1410376

usbip: vudc: Fix apparent cut-n-paste error

From Dave Jones <davej@codemonkey.org.uk>
Newsgroups linux.kernel
Subject usbip: vudc: Fix apparent cut-n-paste error
Date 2016-05-31 17:30 +0200
Message-ID <rETMd-4rJ-25@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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>

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)
 	if (ud->tcp_socket)
 		kernel_sock_shutdown(ud->tcp_socket, SHUT_RDWR);
 
-	if (ud->tcp_tx) {
+	if (ud->tcp_rx) {
 		kthread_stop_put(ud->tcp_rx);
 		ud->tcp_rx = NULL;
 	}

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

usbip: vudc: Fix apparent cut-n-paste error Dave Jones <davej@codemonkey.org.uk> - 2016-05-31 17:30 +0200
  Re: usbip: vudc: Fix apparent cut-n-paste error Krzysztof Opasiak <k.opasiak@samsung.com> - 2016-06-01 12:30 +0200

csiph-web