summaryrefslogtreecommitdiff
path: root/rust/helpers/workqueue.c
diff options
context:
space:
mode:
authorJames Flowers <bold.zone2373@fastmail.com>2025-09-12 22:19:52 -0700
committerAlex Deucher <alexander.deucher@amd.com>2025-09-16 17:47:11 -0400
commit70db83e2b9064bc427d1a7003e516b3400a8ceda (patch)
treeadbfbf9f0b7896de2ae8edf57c6c3540159c3b25 /rust/helpers/workqueue.c
parent39203f5e6dcf2b0529ae526004e7a9c8ef453ae2 (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