diff options
| author | David Francis <David.Francis@amd.com> | 2026-06-25 10:09:13 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2026-07-01 13:01:50 -0400 |
| commit | 9c8b85f95c1d4736b967e17b8eb4a463c055bea3 (patch) | |
| tree | b9718a906683b30c475c0a0bd56a7c2085fbc6e2 /drivers/gpu/nova-core/fsp/git@git.tavy.me:linux.git | |
| parent | 166e1100c175093729fd048efef3cd3108e6bfb2 (diff) | |
drm/amdkfd: Use kvcalloc to allocate arrays
There were a few instances in kfd_chardev.c of kvzalloc being
used to allocate memory for an array.
Switch those to kvcalloc, which
- is the standard way of allocating a zero-initialized array
- does a check for the mul overflowing
Signed-off-by: David Francis <David.Francis@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 60b048c93f7a3add39757ad65fe2bb6e58eeae23)
Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/gpu/nova-core/fsp/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions
