Skip to content

Commit 3202587

Browse files
jkbhat0rleon
authored andcommitted
RDMA/irdma: Fix vf_id size to u16 to avoid overflow
Correctly size the vf_id to u16 to avoid overflow. Signed-off-by: Jay Bhat <[email protected]> Signed-off-by: Tatyana Nikolova <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Leon Romanovsky <[email protected]>
1 parent b8c9aab commit 3202587

File tree

1 file changed

+1
-1
lines changed
  • drivers/infiniband/hw/irdma

1 file changed

+1
-1
lines changed

drivers/infiniband/hw/irdma/type.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ struct irdma_sc_dev {
706706
u32 vchnl_ver;
707707
u16 num_vfs;
708708
u16 hmc_fn_id;
709-
u8 vf_id;
709+
u16 vf_id;
710710
bool privileged:1;
711711
bool vchnl_up:1;
712712
bool ceq_valid:1;

0 commit comments

Comments
 (0)