Commit f27f37a0 authored by Brett Creeley's avatar Brett Creeley Committed by David S. Miller
Browse files

i40e: Fix the conditional for i40e_vc_validate_vqs_bitmaps



Commit d9d6a9ae ("i40e: Fix virtchnl_queue_select bitmap
validation") introduced a necessary change for verifying how queue
bitmaps from the iavf driver get validated. Unfortunately, the
conditional was reversed. Fix this.

Fixes: d9d6a9ae ("i40e: Fix virtchnl_queue_select bitmap validation")
Signed-off-by: default avatarBrett Creeley <brett.creeley@intel.com>
Tested-by: default avatarAndrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent ad1e03b2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -2362,7 +2362,7 @@ static int i40e_vc_enable_queues_msg(struct i40e_vf *vf, u8 *msg)
		goto error_param;
	}

	if (i40e_vc_validate_vqs_bitmaps(vqs)) {
	if (!i40e_vc_validate_vqs_bitmaps(vqs)) {
		aq_ret = I40E_ERR_PARAM;
		goto error_param;
	}
@@ -2424,7 +2424,7 @@ static int i40e_vc_disable_queues_msg(struct i40e_vf *vf, u8 *msg)
		goto error_param;
	}

	if (i40e_vc_validate_vqs_bitmaps(vqs)) {
	if (!i40e_vc_validate_vqs_bitmaps(vqs)) {
		aq_ret = I40E_ERR_PARAM;
		goto error_param;
	}