]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
USB: usbip: remove useless call in usbip_recv
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Tue, 2 Jan 2018 14:02:06 +0000 (08:02 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Jan 2018 16:05:55 +0000 (17:05 +0100)
commit55448d85ae2f7f2b6c43d66946146ec89b4eb088
tree183f2a7b87e0dab02f7e3b0ddd40f15606eca3aa
parent2b80a29bf83d2baed1a22193647bafcc6a0426af
USB: usbip: remove useless call in usbip_recv

Calling msg_data_left(&msg) is only useful for its return value,
which in this particular case is ignored.

Fix this by removing such call.

Addresses-Coverity-ID: 1427080
Fixes: 90120d15f4c3 ("usbip: prevent leaking socket pointer address in messages")
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Acked-by: Shuah Khan <shuahkh@osg.samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/usbip/usbip_common.c