drm/amdgpu: fix NULL pointer issue buffer funcs

[ Upstream commit 9877a865d6 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
Likun Gao 2024-07-12 11:07:40 +08:00 • committed by Sasha Levin
commit 29fd416e0e