From: Peter Chen Date: Wed, 11 Jan 2012 05:39:07 +0000 (+0800) Subject: usb: gadget: fsl_udc: fix the usage of udc->max_ep X-Git-Tag: v3.3-rc2~5^2~4^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=118d63f7f84cd400ba537f5d318c035c95c6776d;p=pandora-kernel.git usb: gadget: fsl_udc: fix the usage of udc->max_ep The max_ep is the number of endpoint * 2. But in dtd_complete_irq, it does again * 2, it will deference wrong memory after scanning max_ep - 1. The another similar problem is at USB_REQ_SET_FEATURE (the pipe number should be 0 and max_ep - 1). Signed-off-by: Peter Chen Signed-off-by: Matthieu castet Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed