i40e: Memory leak in i40e_config_iwarp_qvlist
authorMartyna Szapar <martyna.szapar@intel.com>
Thu, 18 Apr 2019 20:31:53 +0000 (13:31 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Nov 2020 09:29:03 +0000 (10:29 +0100)
commit9674ade91809bfa04c8473a9269e588c389d26b8
treec91fa4a585d79f545ee35a54b8d2f7d1e595c460
parent571c603adf23a270c6308f9c81abbbca2ebb62de
i40e: Memory leak in i40e_config_iwarp_qvlist

commit 0b63644602cfcbac849f7ea49272a39e90fa95eb upstream.

Added freeing the old allocation of vf->qvlist_info in function
i40e_config_iwarp_qvlist before overwriting it with
the new allocation.

Signed-off-by: Martyna Szapar <martyna.szapar@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c