ALSA: use correct lock in snd_ctl_dev_disconnect()
authorTakashi Iwai <tiwai@suse.de>
Sun, 7 Sep 2008 10:51:13 +0000 (12:51 +0200)
committerJaroslav Kysela <perex@perex.cz>
Tue, 9 Sep 2008 07:11:48 +0000 (09:11 +0200)
The lock used in snd_ctl_dev_disconnect() should be card->ctl_files_rwlock
for protection of card->ctl_files entries, instead of card->controls_rwsem.

Reported-by: Vegard Nossum <vegard.nossum@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>

No differences found