]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: Fix error return code in msm_drm_init()
authorZhen Lei <thunder.leizhen@huawei.com>
Sat, 8 May 2021 02:28:36 +0000 (10:28 +0800)
committerRob Clark <robdclark@chromium.org>
Wed, 23 Jun 2021 14:33:44 +0000 (07:33 -0700)
commit1a51d75f49d628529d0bed93475f7e0c935e8625
tree06da217a0e4fb68eef4b36bea1dc94043170f851
parent1704f651dd63ae3ff5370a857b4d98069df460ca
drm/msm: Fix error return code in msm_drm_init()

Fix to return a negative error code from the error handling case instead
of 0, as done elsewhere in this function.

Fixes: 1b9325ae1042 ("drm/msm: validate display and event threads")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com>
Link: https://lore.kernel.org/r/20210508022836.1777-1-thunder.leizhen@huawei.com
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/msm_drv.c