diff options
author | Felipe Balbi <balbi@ti.com> | 2014-11-10 14:39:44 -0600 |
---|---|---|
committer | Felipe Balbi <balbi@ti.com> | 2014-11-10 14:39:44 -0600 |
commit | 520fe7633692181bb6d1560d655fbdfbb7c05aaa (patch) | |
tree | a1d9f9593aa0fcfa986189c8fbc5b9d990cf873a /sound/oss/msnd.c | |
parent | 206c5f60a3d902bc4b56dab2de3e88de5eb06108 (diff) |
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 <davej@redhat.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Diffstat (limited to 'sound/oss/msnd.c')
0 files changed, 0 insertions, 0 deletions