diff options
author | 2023-07-12 13:03:28 +0200 | |
---|---|---|
committer | 2023-07-24 08:52:43 -0700 | |
commit | 7aa529a69e92b9aff585e569d5003f7c15d8d60b (patch) | |
tree | cb44ff3a3ba3a6f57a808f2d654dc26650802985 /drivers/net/ethernet/intel/ice/ice_vsi_vlan_lib.c | |
parent | ice: Prohibit rx mode change in switchdev mode (diff) | |
download | linux-rng-7aa529a69e92b9aff585e569d5003f7c15d8d60b.tar.xz linux-rng-7aa529a69e92b9aff585e569d5003f7c15d8d60b.zip |
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_vsi_vlan_lib.c')
0 files changed, 0 insertions, 0 deletions