linux-xiaomi-chiron/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
e1000e
fm10k
i40e
i40evf
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
ixgb
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
e100.c
Kconfig
Makefile