Files
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: a6a15aca42 ("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-06-18 18:53:51 -07:00
2024-10-06 16:02:23 +01:00
2024-11-05 17:35:11 -08:00
2025-03-25 07:55:11 -07:00
2025-03-25 07:55:10 -07:00
2024-11-05 17:35:11 -08:00
2024-12-19 19:14:39 -08:00
2025-02-11 17:12:17 -08:00
2024-11-05 17:35:11 -08:00
2024-06-28 18:53:21 -07:00
2024-06-28 18:53:21 -07: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
2024-11-09 09:10:37 -08:00
2024-09-11 16:02:21 -07:00
2024-11-09 09:10:37 -08:00
2024-11-09 09:10:37 -08:00
2024-06-28 18:53:21 -07:00
2024-10-06 16:02:23 +01:00
2024-08-30 11:10:02 -07:00
2024-11-05 17:35:11 -08:00
2024-11-05 17:35:11 -08:00