]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - ti-linux-kernel/ti-linux-kernel-next.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, 2 Jan 2018 19:35:15 +0000 (20:35 +0100)
commit3c579d0b4f0f07ab5c57dd3329ca07d70168879b
tree21f47a0ebb7251d396142886709f321cdca5f71e
parent67b539cab43cf3e46896a747004c923abf33ae17
usbip: fix usbip bind writing random string after command in match_busid

commit 544c4605acc5ae4afe7dd5914147947db182f2fb upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/usb/usbip/src/utils.c