Skip to content

Commit c004804

Browse files
gsiwikJeff Kirsher
authored andcommitted
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 <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 7015ca3 commit c004804

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ static inline bool i40e_vc_isvalid_queue_id(struct i40e_vf *vf, u16 vsi_id,
196196
*
197197
* check for the valid vector id
198198
**/
199-
static inline bool i40e_vc_isvalid_vector_id(struct i40e_vf *vf, u8 vector_id)
199+
static inline bool i40e_vc_isvalid_vector_id(struct i40e_vf *vf, u32 vector_id)
200200
{
201201
struct i40e_pf *pf = vf->pf;
202202

0 commit comments

Comments
 (0)