From: Felipe Balbi Date: Fri, 13 May 2011 13:53:48 +0000 (+0300) Subject: usb: gadget: rndis: don't test against req->length X-Git-Tag: v2.6.39.1~50 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4cb5ddcc9b8d2f5714f608924726d3076c7c212b;p=pandora-kernel.git usb: gadget: rndis: don't test against req->length commit 472b91274a6c6857877b5caddb875dcb5ecdfcb8 upstream. composite.c always sets req->length to zero and expects function driver's setup handlers to return the amount of bytes to be used on req->length. If we test against req->length w_length will always be greater than req->length thus making us always stall that particular SEND_ENCAPSULATED_COMMAND request. Tested against a Windows XP SP3. Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed