Commit 5f35ae00 authored by Iskren Chernev's avatar Iskren Chernev Committed by Zheng Zengkai
Browse files

drm/msm: Fix MSM_INFO_GET_IOVA with carveout



stable inclusion
from stable-5.10.20
commit b016a9f0c546a75319da0f8eb43b4b7a720d45f6
bugzilla: 50608

--------------------------------

[ Upstream commit 6cefa31e ]

The msm_gem_get_iova should be guarded with gpu != NULL and not aspace
!= NULL, because aspace is NULL when using vram carveout.

Fixes: 933415e2 ("drm/msm: Add support for private address space instances")

Signed-off-by: default avatarIskren Chernev <iskren.chernev@gmail.com>
Tested-by: default avatarAlexey Minnekhanov <alexeymin@postmarketos.org>
Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: default avatarZheng Zengkai <zhengzengkai@huawei.com>
parent 8b0e4e19
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment