]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 15:00:01 +0000 (17:00 +0200)
commit99994994b5d07dfaefe40226a586429a79adf5fe
tree3cad1db9801af98750d9ec2922f72776da0b4dc7
parentc687e04407bd1efef206d7278bdacdc7c6fbb1c8
drm/msm: Fix error return code in msm_drm_init()

[ Upstream commit a1c9b1e3bdd6d8dc43c18699772fb6cf4497d45a ]

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

Fixes: 7f9743abaa79 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/msm/msm_drv.c