From: Felipe Balbi Date: Mon, 10 Nov 2014 20:39:44 +0000 (-0600) Subject: usb: dwc3: ep0: fix for dead code X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~57^2~7^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=520fe7633692181bb6d1560d655fbdfbb7c05aaa;p=pandora-kernel.git usb: dwc3: ep0: fix for dead code commit 6856d30 (usb: dwc3: ep0: return early on NULL requests) tried to fix a minor corner case where we could dereference a NULL pointer but it also ended up introducing some dead code. Unfortunately, that dead code, if reached, could end up starving the endpoint request list because a request would never be given back when it should. Fix this by moving the check for empty request list before its first use. Reported-by: Dave Jones Signed-off-by: Felipe Balbi --- Reading git-diff-tree failed