usbip: fix usbip bind writing random string after command in match_busid
authorJuan Zea <juan.zea@qindel.com>
Fri, 15 Dec 2017 09:21:20 +0000 (10:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 19 Dec 2017 10:40:55 +0000 (11:40 +0100)
commit544c4605acc5ae4afe7dd5914147947db182f2fb
tree75bb4c70d73b0cc4cf56e09076551cbbdb466bb6
parent10c90120930628e8b959bf58d4a0aaef3ae5d945
usbip: fix usbip bind writing random string after command in match_busid

usbip bind writes commands followed by random string when writing to
match_busid attribute in sysfs, caused by using full variable size
instead of string length.

Signed-off-by: Juan Zea <juan.zea@qindel.com>
Acked-by: Shuah Khan <shuahkh@osg.samsung.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/usb/usbip/src/utils.c