diff options
Diffstat (limited to 'sound/usb/midi.c')
-rw-r--r-- | sound/usb/midi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/usb/midi.c b/sound/usb/midi.c index d3d49525a16b..5bfb695547f8 100644 --- a/sound/usb/midi.c +++ b/sound/usb/midi.c | |||
@@ -365,6 +365,8 @@ static void snd_usbmidi_error_timer(unsigned long data) | |||
365 | if (in && in->error_resubmit) { | 365 | if (in && in->error_resubmit) { |
366 | in->error_resubmit = 0; | 366 | in->error_resubmit = 0; |
367 | for (j = 0; j < INPUT_URBS; ++j) { | 367 | for (j = 0; j < INPUT_URBS; ++j) { |
368 | if (atomic_read(&in->urbs[j]->use_count)) | ||
369 | continue; | ||
368 | in->urbs[j]->dev = umidi->dev; | 370 | in->urbs[j]->dev = umidi->dev; |
369 | snd_usbmidi_submit_urb(in->urbs[j], GFP_ATOMIC); | 371 | snd_usbmidi_submit_urb(in->urbs[j], GFP_ATOMIC); |
370 | } | 372 | } |