[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20210905061126.8B6F9C43618@smtp.codeaurora.org>
Date: Sun, 5 Sep 2021 06:11:26 +0000 (UTC)
From: Kalle Valo <kvalo@...eaurora.org>
To: Christophe JAILLET <christophe.jaillet@...adoo.fr>
Cc: luciano.coelho@...el.com, davem@...emloft.net, kuba@...nel.org,
johannes.berg@...el.com, pierre-louis.bossart@...ux.intel.com,
drorx.moshe@...el.com, linux-wireless@...r.kernel.org,
netdev@...r.kernel.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org,
Christophe JAILLET <christophe.jaillet@...adoo.fr>
Subject: Re: [PATCH] iwlwifi: pnvm: Fix a memory leak in
'iwl_pnvm_get_from_fs()'
Christophe JAILLET <christophe.jaillet@...adoo.fr> wrote:
> A firmware is requested but never released in this function. This leads to
> a memory leak in the normal execution path.
>
> Add the missing 'release_firmware()' call.
> Also introduce a temp variable (new_len) in order to keep the value of
> 'pnvm->size' after the firmware has been released.
>
> Fixes: cdda18fbbefa ("iwlwifi: pnvm: move file loading code to a separate function")
> Signed-off-by: Christophe JAILLET <christophe.jaillet@...adoo.fr>
> Reviewed-by: Dan Carpenter <dan.carpenter@...cle.com>
> Acked-by: Luca Coelho <luca@...lho.fi>
Patch applied to wireless-drivers.git, thanks.
45010c080e6e iwlwifi: pnvm: Fix a memory leak in 'iwl_pnvm_get_from_fs()'
--
https://patchwork.kernel.org/project/linux-wireless/patch/1b5d80f54c1dbf85710fd285243932943b498fe7.1630614969.git.christophe.jaillet@wanadoo.fr/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
Powered by blists - more mailing lists