diff options
| author | luoqing <[email protected]> | 2025-02-08 01:35:39 +0000 |
|---|---|---|
| committer | Andi Shyti <[email protected]> | 2025-02-10 23:26:02 +0000 |
| commit | fc2ef5b6e1ab9717b1a0b588a39b410864091fa9 (patch) | |
| tree | 11fd7c4490f5ebcf5050eb989d93a51baa2933ea /drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c | |
| parent | drm/i915/selftests: avoid using uninitialized context (diff) | |
| download | kernel-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
