Skip to content
Commit db40d292 authored by Luca Weiss's avatar Luca Weiss Committed by Rob Clark
Browse files

drm/msm/iommu: Fix null pointer dereference in no-IOMMU case



In the case that no IOMMU is available, msm_iommu_new can return NULL
which should be handled. Without we will get a NULL pointer dereference
in the next statement when we try to use the mmu variable.

Fixes: 8cceb773 ("drm/msm/adreno: stall translation on fault for all GPU families")
Signed-off-by: default avatarLuca Weiss <luca@z3ntu.xyz>
Reviewed-by: default avatarDmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/535915/
Link: https://lore.kernel.org/r/20230508-6-4-drm-msm-iommu-fixup-v1-1-a7a21ec94f5b@z3ntu.xyz


Signed-off-by: default avatarRob Clark <robdclark@chromium.org>
parent ca29699a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment