1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-18 12:31:11 +00:00
Abdun Nihaal 46a499aaf8 sfc: fix potential memory leak in efx_mae_process_mport()
In efx_mae_enumerate_mports(), memory allocated for mae_mport_desc is
passed as a argument to efx_mae_process_mport(), but when the error path
in efx_mae_process_mport() gets executed, the memory allocated for desc
gets leaked.

Fix that by freeing the memory allocation before returning error.

Fixes: a6a15aca4207 ("sfc: enumerate mports in ef100")
Acked-by: Edward Cree <ecree.xilinx@gmail.com>
Signed-off-by: Abdun Nihaal <nihaal@cse.iitm.ac.in>
Link: https://patch.msgid.link/20251023141844.25847-1-nihaal@cse.iitm.ac.in
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2025-10-27 17:55:41 -07:00
..
2025-10-06 10:41:03 -07:00
2025-10-06 10:41:03 -07:00
2025-06-18 18:53:51 -07:00
2025-03-25 07:55:11 -07:00
2025-03-25 07:55:10 -07:00
2025-02-11 17:12:17 -08:00
2025-07-25 10:29:07 -07:00
2025-03-25 07:55:10 -07:00
2025-03-25 07:55:10 -07:00
2025-02-11 17:12:17 -08:00