]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/msm/gem: Fix error code msm_parse_deps()
authorDan Carpenter <dan.carpenter@linaro.org>
Mon, 17 Feb 2025 07:32:11 +0000 (10:32 +0300)
committerRob Clark <robdclark@chromium.org>
Thu, 27 Feb 2025 20:58:38 +0000 (12:58 -0800)
commit0b305b7cadce835505bd93183a599acb1f800a05
tree317fbd166874245820d649ce2e13fb192717249d
parentd7a5ac67d82c50c1f909c7056f78b1630a0f71cf
drm/msm/gem: Fix error code msm_parse_deps()

The SUBMIT_ERROR() macro turns the error code negative.  This extra '-'
operation turns it back to positive EINVAL again.  The error code is
passed to ERR_PTR() and since positive values are not an IS_ERR() it
eventually will lead to an oops.  Delete the '-'.

Fixes: 866e43b945bf ("drm/msm: UAPI error reporting")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/637625/
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/msm_gem_submit.c