diff options
| author | Jay Bhat <jay.bhat@intel.com> | 2025-10-30 21:17:25 -0500 |
|---|---|---|
| committer | Leon Romanovsky <leon@kernel.org> | 2025-11-02 06:46:01 -0500 |
| commit | 320258783765316d2baae99c26e461ee634054fe (patch) | |
| tree | 266edfadc00175bc3e0a73d0c2667c0734259c1e | |
| parent | b8c9aab4c738e5e9814915768ac6c184fe36ab93 (diff) | |
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>
| -rw-r--r-- | drivers/infiniband/hw/irdma/type.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/irdma/type.h b/drivers/infiniband/hw/irdma/type.h index 4ae77cdde9dc..c1b8f81ea283 100644 --- a/drivers/infiniband/hw/irdma/type.h +++ b/drivers/infiniband/hw/irdma/type.h @@ -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; |
