summaryrefslogtreecommitdiff
path: root/include/uapi
diff options
context:
space:
mode:
authorGaosheng Cui <cuigaosheng1@huawei.com>2023-07-17 09:47:38 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-08-11 11:45:32 +0200
commite937c7bfab2a4292df1b09435fd6d070a0d76690 (patch)
tree8f665e651b532cdd815b9366b1307e47948da7e6 /include/uapi
parent404cac2cd251c8f1e8cfceb71c53a45a479e014a (diff)
drm/msm: Fix IS_ERR_OR_NULL() vs NULL check in a5xx_submit_in_rb()
[ Upstream commit 6e8a996563ecbe68e49c49abd4aaeef69f11f2dc ] 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: 6a8bd08d0465 ("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>
Diffstat (limited to 'include/uapi')
0 files changed, 0 insertions, 0 deletions