]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/amdgpu: fix NULL pointer issue buffer funcs
authorLikun Gao <Likun.Gao@amd.com>
Fri, 12 Jul 2024 03:07:40 +0000 (11:07 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 8 Dec 2025 18:56:28 +0000 (13:56 -0500)
commit9877a865d62c9c3e0f4cc369dc9ca9f7f24f5ee9
tree5313a21f3b34784248f1febf03ae72c97d878474
parentc7685d11108acb387e44e3d81194d0d8959eaa44
drm/amdgpu: fix NULL pointer issue buffer funcs

If SDMA block not enabled, buffer_funcs will not initialize,
fix the null pointer issue if buffer_funcs not initialized.

Signed-off-by: Likun Gao <Likun.Gao@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c