linux/drivers/net/ethernet/intel/ixgbe
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
..
ixgbe_82598.c intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_82599.c intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_common.c intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_common.h ixgbe: add status reg reads to ixgbe_check_remove 2018-03-23 14:18:26 -07:00
ixgbe_dcb_82598.c intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_dcb_82598.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_dcb_82599.c ixgbe: Fix kernel-doc format warnings 2018-01-12 08:20:40 -08:00
ixgbe_dcb_82599.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_dcb_nl.c ixgbe: Don't assume dev->num_tc is equal to hardware TC config 2018-01-12 08:20:15 -08:00
ixgbe_dcb.c ixgbe: Fix kernel-doc format warnings 2018-01-12 08:20:40 -08:00
ixgbe_dcb.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_debugfs.c ixgbe: Fix kernel-doc format warnings 2018-01-12 08:20:40 -08:00
ixgbe_ethtool.c ixgbe: Add receive length error counter 2018-03-12 11:03:32 -07:00
ixgbe_fcoe.c ixgbe: Fix kernel-doc format warnings 2018-01-12 08:20:40 -08:00
ixgbe_fcoe.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_ipsec.c ixgbe: fix memory leak on ipsec allocation 2018-05-11 12:22:22 -07:00
ixgbe_ipsec.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_lib.c ixgbe: remove redundant initialization of 'pool' 2018-02-26 08:28:14 -08:00
ixgbe_main.c ixgbe: tweak page counting for XDP_REDIRECT 2018-03-23 15:23:51 -07:00
ixgbe_mbx.c ixgbe: use BIT() macro 2016-04-25 04:15:11 -07:00
ixgbe_mbx.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_model.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_phy.c ixgbe: Fix kernel-doc format warnings 2018-01-12 08:20:40 -08:00
ixgbe_phy.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_ptp.c ixgbe: Fix kernel-doc format warnings 2018-01-12 08:20:40 -08:00
ixgbe_sriov.c ixgbe: fix disabling hide VLAN on VF reset 2018-03-12 12:54:59 -07:00
ixgbe_sriov.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_sysfs.c ethernet: Use octal not symbolic permissions 2018-03-26 12:07:49 -04:00
ixgbe_type.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_x540.c ixgbe: Clear SWFW_SYNC register during init 2017-10-09 09:28:23 -07:00
ixgbe_x540.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ixgbe_x550.c ixgbe: return error on unsupported SFP module when resetting 2018-05-11 12:16:58 -07:00
ixgbe.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
Makefile intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00