]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: Fix potential Oops in a6xx_gmu_rpmh_init()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 4 Oct 2021 13:45:30 +0000 (16:45 +0300)
committerRob Clark <robdclark@chromium.org>
Fri, 15 Oct 2021 20:26:34 +0000 (13:26 -0700)
commit0f434485827a51f5ba2d8bd2983027efc9d12e01
tree3a1f93dc5f2962cc4974b4afa7bf71cb734885fe
parent6aed2bd24b2bb78fe3b402f5eaa7244f6d0742a5
drm/msm: Fix potential Oops in a6xx_gmu_rpmh_init()

There are two problems here:
1) The "seqptr" is used uninitalized when we free it at the end.
2) The a6xx_gmu_get_mmio() function returns error pointers.  It never
   returns true.

Fixes: f8d91d1120c8 ("drm/msm/a6xx: use AOP-initialized PDC for a650")
Fixes: 5ab2b51cf675 ("drm/msm/a6xx: Fix PDC register overlap")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Link: https://lore.kernel.org/r/20211004134530.GB11689@kili
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/a6xx_gmu.c