From: Thomas Faber Date: Fri, 2 Mar 2012 08:41:50 +0000 (+0100) Subject: usb: gadgetfs: return number of bytes on ep0 read request X-Git-Tag: v3.2.14~129 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8808b35aaac220884881a5b11a57ef65d2eb45d;p=pandora-kernel.git usb: gadgetfs: return number of bytes on ep0 read request commit 85b4b3c8c189e0159101f7628a71411af072ff69 upstream. A read from GadgetFS endpoint 0 during the data stage of a control request would always return 0 on success (as returned by wait_event_interruptible) despite having written data into the user buffer. This patch makes it correctly set the return value to the number of bytes read. Signed-off-by: Thomas Faber Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed