• Takashi Iwai's avatar
    ALSA: Fix yet another race in disconnection · a45e3d6b
    Takashi Iwai authored
    This patch fixes a race between snd_card_file_remove() and
    snd_card_disconnect().  When the card is added to shutdown_files list
    in snd_card_disconnect(), but it's freed in snd_card_file_remove() at
    the same time, the shutdown_files list gets corrupted.  The list member
    must be freed in snd_card_file_remove() as well.
    Reported-and-tested-by: default avatarRuss Dill <russ.dill@gmail.com>
    Cc: <stable@kernel.org>
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    a45e3d6b
init.c 23.7 KB