diff options
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_switch.c')
-rw-r--r-- | drivers/net/ethernet/intel/ice/ice_switch.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ice/ice_switch.c b/drivers/net/ethernet/intel/ice/ice_switch.c index 091047f7ac02..2e5693107fa4 100644 --- a/drivers/net/ethernet/intel/ice/ice_switch.c +++ b/drivers/net/ethernet/intel/ice/ice_switch.c | |||
@@ -1247,6 +1247,9 @@ ice_add_update_vsi_list(struct ice_hw *hw, | |||
1247 | u16 vsi_handle = new_fltr->vsi_handle; | 1247 | u16 vsi_handle = new_fltr->vsi_handle; |
1248 | enum ice_adminq_opc opcode; | 1248 | enum ice_adminq_opc opcode; |
1249 | 1249 | ||
1250 | if (!m_entry->vsi_list_info) | ||
1251 | return ICE_ERR_CFG; | ||
1252 | |||
1250 | /* A rule already exists with the new VSI being added */ | 1253 | /* A rule already exists with the new VSI being added */ |
1251 | if (test_bit(vsi_handle, m_entry->vsi_list_info->vsi_map)) | 1254 | if (test_bit(vsi_handle, m_entry->vsi_list_info->vsi_map)) |
1252 | return 0; | 1255 | return 0; |