Skip to content

Commit

Permalink
ALSA: rme32.c irq enabling after spin_lock_irq
Browse files Browse the repository at this point in the history
According to the other code in this driver and similar
code in rme96 it seems, that spin_lock_irq in
snd_rme32_capture_close function should be paired
with spin_unlock_irq.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Denis Efremov <[email protected]>
Cc: <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
  • Loading branch information
evdenis authored and tiwai committed Feb 11, 2013
1 parent 17ac8e5 commit f49a59c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/pci/rme32.c
Original file line number Diff line number Diff line change
Expand Up @@ -1017,7 +1017,7 @@ static int snd_rme32_capture_close(struct snd_pcm_substream *substream)
spin_lock_irq(&rme32->lock);
rme32->capture_substream = NULL;
rme32->capture_periodsize = 0;
spin_unlock(&rme32->lock);
spin_unlock_irq(&rme32->lock);
return 0;
}

Expand Down

0 comments on commit f49a59c

Please sign in to comment.