diff options
| -rw-r--r-- | sound/usb/endpoint.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/usb/endpoint.c b/sound/usb/endpoint.c index 2f0ea70a998c..c90607ebe155 100644 --- a/sound/usb/endpoint.c +++ b/sound/usb/endpoint.c | |||
| @@ -384,6 +384,9 @@ static void snd_complete_urb(struct urb *urb) | |||
| 384 | if (unlikely(atomic_read(&ep->chip->shutdown))) | 384 | if (unlikely(atomic_read(&ep->chip->shutdown))) |
| 385 | goto exit_clear; | 385 | goto exit_clear; |
| 386 | 386 | ||
| 387 | if (unlikely(!test_bit(EP_FLAG_RUNNING, &ep->flags))) | ||
| 388 | goto exit_clear; | ||
| 389 | |||
| 387 | if (usb_pipeout(ep->pipe)) { | 390 | if (usb_pipeout(ep->pipe)) { |
| 388 | retire_outbound_urb(ep, ctx); | 391 | retire_outbound_urb(ep, ctx); |
| 389 | /* can be stopped during retire callback */ | 392 | /* can be stopped during retire callback */ |
