mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 10:58:48 +09:00
ALSA: info: Fix memleak on bind/unbind situation
Fixes: fa7c9cc3cb ("ALSA: info: Fix potential deadlock at disconnection")
Signed-off-by: Sugar Zhang <sugar.zhang@rock-chips.com>
Change-Id: I8fcd099745b6a193fdca362a445331a0ff663706
This commit is contained in:
@@ -578,7 +578,6 @@ void snd_info_card_disconnect(struct snd_card *card)
|
||||
if (card->proc_root)
|
||||
snd_info_clear_entries(card->proc_root);
|
||||
card->proc_root_link = NULL;
|
||||
card->proc_root = NULL;
|
||||
mutex_unlock(&info_mutex);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user