diff options
author | Gaosheng Cui <cuigaosheng1@huawei.com> | 2023-07-17 09:47:38 +0800 |
---|---|---|
committer | Rob Clark <robdclark@chromium.org> | 2023-07-17 11:57:02 -0700 |
commit | 6e8a996563ecbe68e49c49abd4aaeef69f11f2dc (patch) | |
tree | d8574737c2039f5c5c7970c8671c1e20559d2ea5 /drivers/gpu/drm/msm/msm_gem_submit.c | |
parent | bd846ceee9c478d0397428f02696602ba5eb264a (diff) | |
download | linux-6e8a996563ecbe68e49c49abd4aaeef69f11f2dc.tar.gz linux-6e8a996563ecbe68e49c49abd4aaeef69f11f2dc.tar.bz2 linux-6e8a996563ecbe68e49c49abd4aaeef69f11f2dc.zip |
drm/msm: Fix IS_ERR_OR_NULL() vs NULL check in a5xx_submit_in_rb()
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>
Diffstat (limited to 'drivers/gpu/drm/msm/msm_gem_submit.c')
0 files changed, 0 insertions, 0 deletions