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.4-rc1~184^2~22^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=85b4b3c8c189e0159101f7628a71411af072ff69;p=pandora-kernel.git usb: gadgetfs: return number of bytes on ep0 read request 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 Cc: stable Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed