OSDN Git Service

ALSA: usx2y: Avoid self-killing
authorTakashi Iwai <tiwai@suse.de>
Mon, 17 May 2021 13:15:39 +0000 (15:15 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 17 May 2021 14:04:22 +0000 (16:04 +0200)
commita11aa8537e13dd1082c85b102b98afc2a156a815
tree73c9d400c2dbd1679f310f6af58412525c8afbe3
parent4e268db74770b454b877ab5260f1868a457d212c
ALSA: usx2y: Avoid self-killing

The initialization os usx2y driver is multi-staged, and the PCM and
other device creations are done after the DSP is loaded and
initialized.  Upon the initialization, when an error happens, the
driver tries to call snd_card_free().  But this is dangerous, and in
general, the driver cannot kill itself during its operation.
Hence better to drop the snd_card_free() call from there.

Link: https://lore.kernel.org/r/20210517131545.27252-6-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/usx2y/usX2Yhwdep.c