[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87o7e9xhyd.wl-tiwai@suse.de>
Date: Fri, 29 Dec 2023 14:21:30 +0100
From: Takashi Iwai <tiwai@...e.de>
To: Zhipeng Lu <alexious@....edu.cn>
Cc: Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>,
linux-sound@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] [v2] ALSA: hdsp: fix some memleaks in snd_hdsp_hwdep_ioctl
On Wed, 27 Dec 2023 07:03:20 +0100,
Zhipeng Lu wrote:
>
> When snd_hdsp_load_firmware_from_cache and snd_hdsp_enable_io fails,
> the hdsp->fw_uploaded needs to be free.Or there could be memleaks in
> snd_hdsp_hwdep_ioctl.
>
> Fixes: 90caaef6a1ce ("ALSA: hdsp: improve firmware caching")
> Signed-off-by: Zhipeng Lu <alexious@....edu.cn>
Thanks for the patch, but the patch description is misleading.
The allocated object isn't really "leaked"; it's released at the
removal of the driver.
We may apply some optimization like you did, but then it should have a
different description.
thanks,
Takashi
Powered by blists - more mailing lists