Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

i40e: Fix the conditional for i40e_vc_validate_vqs_bitmaps

Commit d9d6a9aed3f6 ("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: d9d6a9aed3f6 ("i40e: Fix virtchnl_queue_select bitmap validation")
Signed-off-by: Brett Creeley <brett.creeley@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Brett Creeley and committed by
David S. Miller
f27f37a0 ad1e03b2

+2 -2
+2 -2
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
··· 2362 2362 goto error_param; 2363 2363 } 2364 2364 2365 - if (i40e_vc_validate_vqs_bitmaps(vqs)) { 2365 + if (!i40e_vc_validate_vqs_bitmaps(vqs)) { 2366 2366 aq_ret = I40E_ERR_PARAM; 2367 2367 goto error_param; 2368 2368 } ··· 2424 2424 goto error_param; 2425 2425 } 2426 2426 2427 - if (i40e_vc_validate_vqs_bitmaps(vqs)) { 2427 + if (!i40e_vc_validate_vqs_bitmaps(vqs)) { 2428 2428 aq_ret = I40E_ERR_PARAM; 2429 2429 goto error_param; 2430 2430 }