Skip to content

Commit f27f37a

Browse files
bcreeley13davem330
authored andcommitted
i40e: Fix the conditional for i40e_vc_validate_vqs_bitmaps
Commit d9d6a9a ("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: d9d6a9a ("i40e: Fix virtchnl_queue_select bitmap validation") Signed-off-by: Brett Creeley <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent ad1e03b commit f27f37a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2362,7 +2362,7 @@ static int i40e_vc_enable_queues_msg(struct i40e_vf *vf, u8 *msg)
23622362
goto error_param;
23632363
}
23642364

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

2427-
if (i40e_vc_validate_vqs_bitmaps(vqs)) {
2427+
if (!i40e_vc_validate_vqs_bitmaps(vqs)) {
24282428
aq_ret = I40E_ERR_PARAM;
24292429
goto error_param;
24302430
}

0 commit comments

Comments
 (0)