Comment 5 for bug 1074157

Revision history for this message
Herton R. Krzesinski (herton) wrote :

I was looking at this, and the problem I believe should remain with latest 3.2 stable.

Kai Petzke, the change you propose actually reverts this commit on the linux kernel:
commit cafbe85fb0d00d32988905c4978df433ca9b6512
Author: Bjørn Mork <email address hidden>
USB: cdc-wdm: better allocate a buffer that is at least as big as we tell the USB core

The commit actually missed the fact that it should change the usb_free_coherent calls as well, so the right fix should be that you should modify all usb_free_coherent that frees desc->inbuf to use desc->wMaxCommand instead.

3.7 upstream kernel should not be affected, because the driver was after that changed to not use anymore usb_*_coherent functions. Can you try contact upstream about this problem (the author and linux-usb list I think should be appropriate)?