diff options
author | Yang Yingliang <yangyingliang@huawei.com> | 2022-10-19 17:30:25 +0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2022-10-20 14:19:48 +0200 |
commit | 4881bda5ea05c8c240fc8afeaa928e2bc43f61fa (patch) | |
tree | af286aa6742c49fbe406e73f06ba4b2dedd15e02 /crypto/gcm.c | |
parent | 491a4ccd8a0258392900c80c6b2b622c7115fc23 (diff) |
ALSA: ac97: fix possible memory leak in snd_ac97_dev_register()
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: 0ca06a00e206 ("[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>
Diffstat (limited to 'crypto/gcm.c')
0 files changed, 0 insertions, 0 deletions