[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87v7i86trr.wl-tiwai@suse.de>
Date: Mon, 15 Dec 2025 09:20:24 +0100
From: Takashi Iwai <tiwai@...e.de>
To: Haotian Zhang <vulab@...as.ac.cn>
Cc: perex@...ex.cz,
tiwai@...e.com,
linux-sound@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ALSA: vxpocket: Fix resource leak in vxpocket_probe error path
On Mon, 15 Dec 2025 05:26:52 +0100,
Haotian Zhang wrote:
>
> When vxpocket_config() fails, vxpocket_probe() returns the error code
> directly without freeing the sound card resources allocated by
> snd_card_new(), which leads to a memory leak.
>
> Add proper error handling to free the sound card and clear the
> allocation bit when vxpocket_config() fails.
>
> Fixes: 15b99ac17295 ("[PATCH] pcmcia: add return value to _config() functions")
> Signed-off-by: Haotian Zhang <vulab@...as.ac.cn>
Applied now. Thanks.
I guess a similar bug is present in
sound/pcmcia/pdaudiocf/pdaudiocf.c, too.
Care to fix it as well? ;)
Takashi
Powered by blists - more mailing lists