]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/admgpu: fix dereferencing null pointer context
authorJesse Zhang <jesse.zhang@amd.com>
Thu, 9 May 2024 02:57:04 +0000 (10:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 23 May 2024 19:09:15 +0000 (15:09 -0400)
commit030ffd4d43b433bc6671d9ec34fc12c59220b95d
tree1162f527ff7551379419d8ab6b7b7c84fb8da18d
parent29c03edecd090de105b9353d8eb4e430132218a8
drm/admgpu: fix dereferencing null pointer context

When user space sets an invalid ta type, the pointer context will be empty.
So it need to check the pointer context before using it

Signed-off-by: Jesse Zhang <Jesse.Zhang@amd.com>
Suggested-by: Tim Huang <Tim.Huang@amd.com>
Reviewed-by: Tim Huang <Tim.Huang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp_ta.c