Re: [Qemu-devel] USB port NULL pointer causes segv

2011-08-21 Thread Erik Rull
Hi Gerd, thanks a lot. I just had a look on usb-linux.c where the "port" could be identified. for those that must use /proc/bus/usb it would be possible to allow the following: read in the "Port=" and check if it is on bus level 1, then you can identify at least your real root hardware port - h

Re: [Qemu-devel] USB port NULL pointer causes segv

2011-08-18 Thread erik . rull
Hi Gerd, thanks a lot. I just had a look on usb-linux.c where the "port" could be identified. for those that must use /proc/bus/usb it would be possible to allow the following: read in the "Port=" and check if it is on bus level 1, then you can identify at least your real root hardware port - hu

Re: [Qemu-devel] USB port NULL pointer causes segv

2011-08-17 Thread Gerd Hoffmann
Hi, in usb-linux.c my qemu crashes in static int usb_host_open(USBHostDevice *dev, int bus_num, int addr, char *port, const char *prod_name, int speed) because port is NULL. The attached patches should fix this. cheers, Gerd >From 15fd107f500f8a0f6ffa05fa3a9775d37afda1bd Mon Sep 17 00:0

[Qemu-devel] USB port NULL pointer causes segv

2011-08-17 Thread Erik Rull
Hi all, in usb-linux.c my qemu crashes in static int usb_host_open(USBHostDevice *dev, int bus_num, int addr, char *port, const char *prod_name, int speed) because port is NULL. The line that causes the problem is: strcpy(dev->port, port); All Ports are displayed in the qemu monitor info as