Commit e23cb0a
committed
mlx5: Fix byte_count type in umr_sg_list_create
Change byte_count variable from int to uint64_t to match the
reglen parameter type and prevent potential overflow issues when
working with large memory registrations in UMR (User-Mode Memory
Registration) operations.
The function signature uses uint64_t *reglen, but byte_count was
declared as int, which could cause type mismatch issues and potential
overflow when accumulating large transfer sizes across multiple SGEs.
Signed-off-by: Dennis van der Staay <dstaay@fb.com>1 parent 247966c commit e23cb0a
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2106 | 2106 | | |
2107 | 2107 | | |
2108 | 2108 | | |
2109 | | - | |
| 2109 | + | |
2110 | 2110 | | |
2111 | 2111 | | |
2112 | 2112 | | |
| |||
0 commit comments