diff options
author | Wojciech Drewek <wojciech.drewek@intel.com> | 2023-07-12 13:03:28 +0200 |
---|---|---|
committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2023-07-24 08:52:43 -0700 |
commit | 7aa529a69e92b9aff585e569d5003f7c15d8d60b (patch) | |
tree | cb44ff3a3ba3a6f57a808f2d654dc26650802985 /drivers/net/ethernet/intel/ice/ice_lib.h | |
parent | 2571a3fa6251662e5201372f889bf93f234c8261 (diff) |
ice: Don't tx before switchdev is fully configured
There is possibility that ice_eswitch_port_start_xmit might be
called while some resources are still not allocated which might
cause NULL pointer dereference. Fix this by checking if switchdev
configuration was finished.
Reviewed-by: Paul Menzel <pmenzel@molgen.mpg.de>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: Wojciech Drewek <wojciech.drewek@intel.com>
Tested-by: Sujai Buvaneswaran <sujai.buvaneswaran@intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_lib.h')
0 files changed, 0 insertions, 0 deletions