ALSA: firewire-speakers: fix locking
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Sat, 27 Aug 2011 14:45:28 +0000 (16:45 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 4 Oct 2011 05:16:31 +0000 (07:16 +0200)
commita0978e8039f1b1bfb9fbc68f682b14313bb4f9ad
tree1c255087a112e82598000df49d13e25a5c61b9e9
parentbb690c9e2702e49af3be2fb6f03d9b60e0afcab7
ALSA: firewire-speakers: fix locking

There is a lock inversion between fwspk->mutex and pcm->open_mutex
reported by lockdep when fwspk_hw_free is called.

Fixed by copying the fix from the same former issue in the isight
sound driver (commit f3f7c1837f6bcae3601fc535b339426868bf1549
"ALSA: isight: fix locking").

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/firewire/speakers.c