drm/msm: Fix IS_ERR_OR_NULL() vs NULL check in a5xx_submit_in_rb()
stable inclusion from stable-v5.10.190 commit 94bac776cd273b694d3dbb7b092de120013b3af5 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I928UI Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=94bac776cd273b694d3dbb7b092de120013b3af5 -------------------------------- [ Upstream commit 6e8a9965 ] The msm_gem_get_vaddr() returns an ERR_PTR() on failure, and a null is catastrophic here, so we should use IS_ERR_OR_NULL() to check the return value. Fixes: 6a8bd08d ("drm/msm: add sudo flag to submit ioctl") Signed-off-by:Gaosheng Cui <cuigaosheng1@huawei.com> Reviewed-by:
Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Reviewed-by:
Abhinav Kumar <quic_abhinavk@quicinc.com> Reviewed-by:
Akhil P Oommen <quic_akhilpo@quicinc.com> Patchwork: https://patchwork.freedesktop.org/patch/547712/ Signed-off-by:
Rob Clark <robdclark@chromium.org> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment