]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: sis7019: Fix the missing error handling
authorTakashi Iwai <tiwai@suse.de>
Tue, 12 Apr 2022 10:26:24 +0000 (12:26 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 12 Apr 2022 15:58:35 +0000 (17:58 +0200)
commit514beccfadb8f40ed40b9c312e289f6234c20e94
tree6d1a62c9fc794450864a1b8100b240461f403efe
parent3a638dde5ac7ff3870030c8dbd9638d9c98f99c6
ALSA: sis7019: Fix the missing error handling

The previous cleanup with devres forgot to replace the snd_card_free()
call with the devm version.  Moreover, it still needs the manual call
of snd_card_free() at the probe error path, otherwise the reverse
order of the releases may happen.  This patch addresses those issues.

Fixes: 84e5727f2cf0 ("ALSA: sis7019: Allocate resources with device-managed APIs")
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20220412102636.16000-28-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/sis7019.c