]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Apr 2022 07:34:05 +0000 (09:34 +0200)
commit7f0bba3fb0559bdaff9372cfd94455ed03cf0973
tree6953ada858cbc5f65538669028074f3ee09f845a
parent49e626845ebfde7e342e0dcaeecc6aff81e868b8
ALSA: sis7019: Fix the missing error handling

commit 43dca6abe19a0d256c28a0f3bdbaeb36a627aa24 upstream.

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: e011addb715e ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/sis7019.c