]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3d78d350fb4f18ede4482ed35487e33f740e69fd
tree75bb4c70d73b0cc4cf56e09076551cbbdb466bb6
parent96a3a6c0294287df845f68205896ed40c491bf1d
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