]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: mana: Fix irq_contexts memory leak in mana_gd_setup_irqs
authorMaxim Levitsky <mlevitsk@redhat.com>
Mon, 9 Dec 2024 17:57:51 +0000 (12:57 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Dec 2024 17:13:18 +0000 (18:13 +0100)
commit9f468bfed1fba8da7db13f2c55f42b7be23a9b56
tree12ebd09bf873e237bc6ed81a2145f6a89b3c6a4d
parent9fda340cbfbf7909bb1c8338c204396d255f387f
net: mana: Fix irq_contexts memory leak in mana_gd_setup_irqs

[ Upstream commit 9a5beb6ca6305de5c5210efab0702ea79b62eb39 ]

gc->irq_contexts is not freeded if one of the later operations
fail.

Suggested-by: Michael Kelley <mhklinux@outlook.com>
Fixes: 8afefc361209 ("net: mana: Assigning IRQ affinity on HT cores")
Signed-off-by: Maxim Levitsky <mlevitsk@redhat.com>
Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com>
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Reviewed-by: Saurabh Sengar <ssengar@linux.microsoft.com>
Reviewed-by: Yury Norov <yury.norov@gmail.com>
Link: https://patch.msgid.link/20241209175751.287738-3-mlevitsk@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/microsoft/mana/gdma_main.c