Files
android_kernel_xiaomi_sm8450/drivers/net/ethernet/intel/i40e
Andrii Staikov 61e7961ff3 i40e: fix potential memory leaks in i40e_remove()
[ Upstream commit 5ca636d927a106780451d957734f02589b972e2b ]

Instead of freeing memory of a single VSI, make sure
the memory for all VSIs is cleared before releasing VSIs.
Add releasing of their resources in a loop with the iteration
number equal to the number of allocated VSIs.

Fixes: 41c445ff0f ("i40e: main driver core")
Signed-off-by: Andrii Staikov <andrii.staikov@intel.com>
Signed-off-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-11-20 11:06:44 +01:00
..
2023-08-26 15:26:53 +02:00
2021-07-19 09:44:59 +02:00
2022-10-30 09:41:16 +01:00
2022-10-30 09:41:16 +01:00
2022-10-30 09:41:16 +01:00