diff options
author | James Flowers <bold.zone2373@fastmail.com> | 2025-09-12 22:19:52 -0700 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2025-09-16 17:47:11 -0400 |
commit | 70db83e2b9064bc427d1a7003e516b3400a8ceda (patch) | |
tree | adbfbf9f0b7896de2ae8edf57c6c3540159c3b25 /rust/helpers/workqueue.c | |
parent | 39203f5e6dcf2b0529ae526004e7a9c8ef453ae2 (diff) |
drm/amd/display: Use kmalloc_array() instead of kmalloc()
Documentation/process/deprecated.rst recommends against the use of kmalloc
with dynamic size calculations due to the risk of overflow and smaller
allocation being made than the caller was expecting. This could lead to
buffer overflow in code similar to the memcpy in
amdgpu_dm_plane_add_modifier().
Signed-off-by: James Flowers <bold.zone2373@fastmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'rust/helpers/workqueue.c')
0 files changed, 0 insertions, 0 deletions