Commit a8d90f00 authored by Friedrich Vock's avatar Friedrich Vock Committed by Greg Kroah-Hartman
Browse files

drm/amdgpu: Check if NBIO funcs are NULL in amdgpu_device_baco_exit



[ Upstream commit 0cdb3f97 ]

The special case for VM passthrough doesn't check adev->nbio.funcs
before dereferencing it. If GPUs that don't have an NBIO block are
passed through, this leads to a NULL pointer dereference on startup.

Signed-off-by: default avatarFriedrich Vock <friedrich.vock@gmx.de>
Fixes: 1bece222 ("drm/amdgpu: Clear doorbell interrupt status for Sienna Cichlid")
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: Christian König <christian.koenig@amd.com>
Acked-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent d649eb1f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment