aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorGrzegorz Siwik <grzegorz.siwik@intel.com>2019-03-29 15:08:37 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2019-05-04 17:22:48 -0700
commitc004804dceee9ca384d97d9857ea2e2795c2651d (patch)
treea8a4e039ed3b5c47c8ee615f4fadbbf7b3f13fe8 /drivers/net/ethernet
parenti40e: add num_vectors checker in iwarp handler (diff)
downloadlinux-dev-c004804dceee9ca384d97d9857ea2e2795c2651d.tar.xz
linux-dev-c004804dceee9ca384d97d9857ea2e2795c2651d.zip
i40e: Wrong truncation from u16 to u8
In this patch fixed wrong truncation method from u16 to u8 during validation. It was changed by changing u8 to u32 parameter in method declaration and arguments were changed to u32. Signed-off-by: Grzegorz Siwik <grzegorz.siwik@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
index 25490cfb06fc..d0e3677b7dc8 100644
--- a/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
+++ b/drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c
@@ -196,7 +196,7 @@ static inline bool i40e_vc_isvalid_queue_id(struct i40e_vf *vf, u16 vsi_id,
*
* check for the valid vector id
**/
-static inline bool i40e_vc_isvalid_vector_id(struct i40e_vf *vf, u8 vector_id)
+static inline bool i40e_vc_isvalid_vector_id(struct i40e_vf *vf, u32 vector_id)
{
struct i40e_pf *pf = vf->pf;