author | Juan Zea <juan.zea@qindel.com> | |
Fri, 15 Dec 2017 09:21:20 +0000 (10:21 +0100) | ||
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | |
Tue, 2 Jan 2018 19:35:15 +0000 (20:35 +0100) | ||
commit | 3c579d0b4f0f07ab5c57dd3329ca07d70168879b | |
tree | 21f47a0ebb7251d396142886709f321cdca5f71e | tree | snapshot (tar.xz tar.gz zip) |
parent | 67b539cab43cf3e46896a747004c923abf33ae17 | commit | diff |
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>
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 | diff | blob | history |