aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
diff options
context:
space:
mode:
authorluoqing <[email protected]>2025-02-08 01:35:39 +0000
committerAndi Shyti <[email protected]>2025-02-10 23:26:02 +0000
commitfc2ef5b6e1ab9717b1a0b588a39b410864091fa9 (patch)
tree11fd7c4490f5ebcf5050eb989d93a51baa2933ea /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c
parentdrm/i915/selftests: avoid using uninitialized context (diff)
downloadkernel-fc2ef5b6e1ab9717b1a0b588a39b410864091fa9.tar.gz
kernel-fc2ef5b6e1ab9717b1a0b588a39b410864091fa9.zip
selftests: i915: Use struct_size() helper in kmalloc()
Make use of the struct_size() helper instead of an open-coded version, in order to avoid any potential type mistakes or integer overflows that, in the worst scenario, could lead to heap overflows. Signed-off-by: luoqing <[email protected]> Reviewed-by: Andi Shyti <[email protected]> Signed-off-by: Andi Shyti <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c')
0 files changed, 0 insertions, 0 deletions