android_kernel_xiaomi_sm7250/sound/pci
Yang Yingliang ee8bf0946f ALSA: ac97: fix possible memory leak in snd_ac97_dev_register()
[ Upstream commit 4881bda5ea05c8c240fc8afeaa928e2bc43f61fa ]

If device_register() fails in snd_ac97_dev_register(), it should
call put_device() to give up reference, or the name allocated in
dev_set_name() is leaked.

Fixes: 0ca06a00e2 ("[ALSA] AC97 bus interface for ad-hoc drivers")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20221019093025.1179475-1-yangyingliang@huawei.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-11-03 23:52:30 +09:00
..
ac97 ALSA: ac97: fix possible memory leak in snd_ac97_dev_register() 2022-11-03 23:52:30 +09:00
ali5451 ALSA: ali5451: remove redundant pointer 'codec' 2018-07-16 14:30:33 +02:00
asihpi ALSA: asihpi: fix iounmap in error handler 2020-10-01 13:14:53 +02:00
au88x0 ALSA: au88x0: use explicitly signed char 2022-11-03 23:52:27 +09:00
aw2
ca0106 ALSA: ca0106: fix error code handling 2020-09-09 19:04:30 +02:00
cs46xx ALSA: pci: delete repeated words in comments 2020-09-03 11:24:17 +02:00
cs5535audio
ctxfi ALSA: ctxfi: Fix out-of-range access 2021-12-01 09:27:39 +01:00
echoaudio ALSA: echoaudio: Fix potential Oops in snd_echo_resume() 2020-08-21 11:05:38 +02:00
emu10k1 ALSA: emu10k1: Fix out of bounds access in snd_emu10k1_pcm_channel_alloc() 2022-09-15 12:17:05 +02:00
hda ALSA: hda/realtek: remove ALC289_FIXUP_DUAL_SPK for Dell 5530 2022-10-26 13:19:20 +02:00
ice1712 ALSA: pci: delete repeated words in comments 2020-09-03 11:24:17 +02:00
korg1212
lola ALSA: lola: Proper endian notations 2018-07-27 09:06:05 +02:00
lx6464es ALSA: lx6464es - add support for LX6464ESe pci express variant 2020-06-22 09:05:24 +02:00
mixart ALSA: mixart: Fix mutex deadlock 2020-11-24 13:27:24 +01:00
nm256
oxygen ALSA: pci: delete repeated words in comments 2020-09-03 11:24:17 +02:00
pcxhr
riptide ALSA: riptide: Properly endian notations 2018-07-27 09:06:02 +02:00
rme9652 ALSA: rme9652: don't disable if not enabled 2021-05-22 10:59:40 +02:00
trident ALSA: trident: Proper endian notations 2018-07-27 09:06:00 +02:00
vx222
ymfpci
ad1889.c
ad1889.h
ak4531_codec.c ALSA: pci: Drop superfluous ifdef CONFIG_PROC_FS 2015-05-29 08:00:06 +02:00
als300.c
als4000.c ALSA: pci: make snd_pcm_hardware const 2017-08-12 23:31:58 +02:00
atiixp_modem.c ALSA: atiixp_modem: Proper endian notations 2018-07-27 09:06:13 +02:00
atiixp.c
azt3328.c
azt3328.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
bt87x.c
cmipci.c ALSA: cmipci: Restore aux vol on suspend/resume 2022-03-28 08:41:43 +02:00
cs4281.c
cs5530.c
ens1370.c
ens1371.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
es1938.c
es1968.c
fm801.c ALSA: fm801: add error handling for snd_ctl_add 2018-06-11 15:21:19 +02:00
intel8x0.c
intel8x0m.c ALSA: intel8x0m: Register irq handler after register initializations 2019-11-20 18:46:34 +01:00
Kconfig ALSA: ISA: not for M68K 2021-11-26 11:36:20 +01:00
maestro3.c ALSA: maestro3: Proper endian notations 2018-07-27 09:06:08 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
rme32.c
rme96.c ALSA: pci: make snd_pcm_hardware const 2017-08-12 23:31:58 +02:00
sis7019.c
sis7019.h
sonicvibes.c ALSA: sonicvibes: remove redundant pointer 'dir' 2018-08-01 14:00:13 +02:00
via82xx_modem.c treewide: kmalloc() -> kmalloc_array() 2018-06-12 16:19:22 -07:00
via82xx.c