[Intel-wired-lan] [PATCH iwl-net v3] i40e: fix potential memory leaks in i40e_remove()
Pucha, HimasekharX Reddy
himasekharx.reddy.pucha at intel.com
Thu Aug 31 04:52:25 UTC 2023
> -----Original Message-----
> From: Intel-wired-lan <intel-wired-lan-bounces at osuosl.org> On Behalf Of Andrii Staikov
> Sent: Friday, August 11, 2023 2:59 PM
> To: intel-wired-lan at lists.osuosl.org
> Cc: Loktionov, Aleksandr <aleksandr.loktionov at intel.com>; Staikov, Andrii <andrii.staikov at intel.com>
> Subject: [Intel-wired-lan] [PATCH iwl-net v3] i40e: fix potential memory leaks in i40e_remove()
>
> 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: 41c445ff0f48 ("i40e: main driver core")
> Signed-off-by: Andrii Staikov <andrii.staikov at intel.com>
> Signed-off-by: Aleksandr Loktionov <aleksandr.loktionov at intel.com>
> ---
> v1 -> v2: Changed commit message.
> v2 -> v3: Fixed mistakes in the commit message.
> ---
> drivers/net/ethernet/intel/i40e/i40e_main.c | 10 ++++++++--
> 1 file changed, 8 insertions(+), 2 deletions(-)
>
Tested-by: Pucha Himasekhar Reddy <himasekharx.reddy.pucha at intel.com> (A Contingent worker at Intel)
More information about the Intel-wired-lan
mailing list