Re: [Qemu-devel] [PATCH] Fix parse of usb device description with multiple configurations

2011-12-12 Thread Gerd Hoffmann
Hi, +} else if (descriptors[i + 5] != s-configuration) { +fprintf(stderr, not requested configuration %d\n, +s-configuration); +i += (descriptors[i + 3] 8) + descriptors[i + 2]; +continue; +} That message doesn't

[Qemu-devel] [PATCH] Fix parse of usb device description with multiple configurations

2011-12-07 Thread Cao,Bing Bu
When testing ipod on QEMU by He Jie Xux...@linux.vnet.ibm.com,qemu made a assertion. We found that the ipod with 2 configurations,and the usb-linux did not parse the descriptor correctly. The descr_len returned is the total length of the all configurations,not one configuration. The older