Loading
bnxt_en: Fix possible memory leak when hwrm_req_replace fails
stable inclusion from stable-v6.6.72 commit 70163207b57b886a1bae46b96cac536da9ccf4f6 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/IBGQ3Q CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.6.y&id=70163207b57b886a1bae46b96cac536da9ccf4f6 ------------------------- [ Upstream commit c8dafb0e4398dacc362832098a04b97da3b0395b ] When hwrm_req_replace() fails, the driver is not invoking bnxt_req_drop() which could cause a memory leak. Fixes: bbf33d1d ("bnxt_en: update all firmware calls to use the new APIs") Reviewed-by:Pavan Chebbi <pavan.chebbi@broadcom.com> Signed-off-by:
Kalesh AP <kalesh-anakkur.purayil@broadcom.com> Signed-off-by:
Michael Chan <michael.chan@broadcom.com> Link: https://patch.msgid.link/20250104043849.3482067-2-michael.chan@broadcom.com Signed-off-by:
Jakub Kicinski <kuba@kernel.org> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
baogen shang <baogen.shang@windriver.com>