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
---
tools/usb/usbip/src/utils.c | 9 ++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a
> Why not use the return value from snprintf() for length, instead of calling
strlen(command)?
Yes, that makes sense. Something like this?
diff --git a/tools/usb/usbip/src/utils.c b/tools/usb/usbip/src/utils.c
index 2b3d6d2..3d7b42e 100644
--- a/tools/usb/usbip/src/utils.c
+++ b/tools/usb/usbip/s
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
---
tools/usb/usbip/src/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/usb
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
---
tools/usb/usbip/src/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/usb
ite_sysfs_attribute(match_busid_attr_path, command,
- sizeof(command));
+ strlen(command));
if (rc < 0) {
dbg("failed to write match_busid: %s", strerror(errno));
return -1;
Regar
>On 11/29/2017 07:25 PM, Yuyang Du wrote:
>> Hi Shuah,
>>
>> On Tue, Nov 28, 2017 at 05:09:18PM -0700, Shuah Khan wrote:
>>> On 11/28/2017 11:32 AM, Shuah Khan wrote:
>>>> On 11/26/2017 06:33 PM, Yuyang Du wrote:
>>>>> Hi Juan,
>>>
> De: "Yuyang Du"
> Para: "Juan Zea"
> CC: "Shuah Khan" , sh...@kernel.org, "Bjørn Mork"
> , linux-usb@vger.kernel.org, "Valentina Manea"
>
> Enviados: Viernes, 24 de Noviembre 2017 8:22:44
> Asunto: Re: usbip port numb
Hi Yuyang,
>
> - Mensaje original -
> De: "Yuyang Du"
> Para: "Juan Zea"
> CC: "Shuah Khan" , sh...@kernel.org, "Bjørn Mork"
> , linux-usb@vger.kernel.org, "Valentina Manea"
>
> Enviados: Miércoles, 22 de
> - Mensaje original -
> De: "Yuyang Du"
> Para: "Shuah Khan"
> CC: "Juan Zea" , sh...@kernel.org, "Bjørn Mork"
> , linux-usb@vger.kernel.org, "Valentina Manea"
>
> Enviados: Martes, 21 de Noviembre 2017 8:45:33
&g
>>Also, will you be able to revert the usb3 commit
>>1c9de5bf428612458427943b724bea51abde520a
>>
>>and see if any of the problems go away.
>>
>>thanks,
>>-- Shuah
>>
>I'm on it and will send results later.
>Thanks,
>Juan
Ok, I'm back. The revert was quite complex, with several conflicts I
>On 11/14/2017 09:25 AM, Juan Zea wrote:
>> Hi,
>>
>> I've been working on the issue. This is what I found about multi-controller
>> setup:
>>
>> The problem comes from the usbip tool trying to connect usb2 devices to usb3
>> ports, like th
rranz
Proyectos y consultoría | Qindel Group
E: juan@qindel.com
T: +34 91 766 24 21
M: +34 637 74 63 09
W: qindel.com
- Mensaje original -
De: "Bjørn Mork"
Para: "Juan Zea"
CC: linux-usb@vger.kernel.org, "Valentina Manea" ,
"Shuah Khan"
Envi
Hi,
My name is Juan, and I work for Qindel, a small IT company based in Spain. I'm
currently trying to do some development for our main product QVD. Specifically,
I'm trying to get usbip to work with a great number of LXC containers. Due to
the nature of LXC, all usbip ports are shared among t
13 matches
Mail list logo