1
0
Fork 0
alistair23-linux/drivers/net/ethernet/intel
Colin Ian King c89ebb968f ixgbe: fix memory leak on ipsec allocation
The error clean up path kfree's adapter->ipsec and should be
instead kfree'ing ipsec. Fix this.  Also, the err1 error exit path
does not need to kfree ipsec because this failure path was for
the failed allocation of ipsec.

Detected by CoverityScan, CID#146424 ("Resource Leak")

Fixes: 63a67fe229 ("ixgbe: add ipsec offload add and remove SA")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Shannon Nelson <shannon.nelson@oracle.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2018-05-11 12:22:22 -07:00
..
e1000 intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
e1000e intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
fm10k pci-v4.17-changes 2018-04-06 18:31:06 -07:00
i40e i40e: add support for XDP_REDIRECT 2018-03-26 14:17:10 -07:00
i40evf intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ice ice: Set rq_last_status when cleaning rq 2018-05-11 11:43:17 -07:00
igb igb: Fix the transmission mode of queue 0 for Qav mode 2018-04-24 08:53:19 -07:00
igbvf intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgb intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe ixgbe: fix memory leak on ipsec allocation 2018-05-11 12:22:22 -07:00
ixgbevf ixgbevf: fix ixgbevf_xmit_frame()'s return type 2018-05-11 12:18:35 -07:00
Kconfig ice: Add basic driver framework for Intel(R) E800 Series 2018-03-26 08:28:02 -07:00
Makefile ice: Add basic driver framework for Intel(R) E800 Series 2018-03-26 08:28:02 -07:00
e100.c intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00