linux/drivers/net/ethernet/intel/i40e
Jacob Keller 4a2ce27bb5 i40e: properly cleanup on allocation failure in i40e_sync_vsi_filters
Currently, we fail to correctly restore filters on the temporary add
list when we fail to allocate memory either for deletion or addition.
Replace calls to "goto out;" with calls to a new location that correctly
handles memory allocation failures.

Note that it is safe for us to call i40e_undo_filter_entries on the
tmp_del_list even after we've deleted filters because at this point it
will be empty, so we don't need to separate the logic for add and
delete failure.

Change-Id: Iee107fd219c6e03e2fd9645c2debf8e8384a8521
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2016-10-31 14:26:40 -07:00
..
i40e_adminq_cmd.h
i40e_adminq.c
i40e_adminq.h
i40e_alloc.h
i40e_client.c
i40e_client.h
i40e_common.c
i40e_dcb_nl.c
i40e_dcb.c
i40e_dcb.h
i40e_debugfs.c
i40e_devids.h
i40e_diag.c
i40e_diag.h
i40e_ethtool.c
i40e_fcoe.c
i40e_fcoe.h
i40e_hmc.c
i40e_hmc.h
i40e_lan_hmc.c
i40e_lan_hmc.h
i40e_main.c i40e: properly cleanup on allocation failure in i40e_sync_vsi_filters 2016-10-31 14:26:40 -07:00
i40e_nvm.c
i40e_osdep.h
i40e_prototype.h
i40e_ptp.c
i40e_register.h
i40e_status.h
i40e_txrx.c
i40e_txrx.h
i40e_type.h
i40e_virtchnl_pf.c
i40e_virtchnl_pf.h
i40e_virtchnl.h
i40e.h
Makefile