diff options
| author | Felipe Balbi <[email protected]> | 2014-11-10 20:39:44 +0000 |
|---|---|---|
| committer | Felipe Balbi <[email protected]> | 2014-11-10 20:39:44 +0000 |
| commit | 520fe7633692181bb6d1560d655fbdfbb7c05aaa (patch) | |
| tree | a1d9f9593aa0fcfa986189c8fbc5b9d990cf873a /drivers/tty/serial/sccnxp.c | |
| parent | Linux 3.18-rc4 (diff) | |
| download | kernel-520fe7633692181bb6d1560d655fbdfbb7c05aaa.tar.gz kernel-520fe7633692181bb6d1560d655fbdfbb7c05aaa.zip | |
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 <[email protected]>
Signed-off-by: Felipe Balbi <[email protected]>
Diffstat (limited to 'drivers/tty/serial/sccnxp.c')
0 files changed, 0 insertions, 0 deletions
