mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
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 <jay.bhat@intel.com> Signed-off-by: Tatyana Nikolova <tatyana.e.nikolova@intel.com> Link: https://patch.msgid.link/20251031021726.1003-6-tatyana.e.nikolova@intel.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
This commit is contained in:
parent
b8c9aab4c7
commit
3202587837
|
|
@ -706,7 +706,7 @@ struct irdma_sc_dev {
|
|||
u32 vchnl_ver;
|
||||
u16 num_vfs;
|
||||
u16 hmc_fn_id;
|
||||
u8 vf_id;
|
||||
u16 vf_id;
|
||||
bool privileged:1;
|
||||
bool vchnl_up:1;
|
||||
bool ceq_valid:1;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user