drm/msm/a6xx: fix a potential overflow issue
authorZhenzhong Duan <zhenzhong.duan@gmail.com>
Sat, 12 Sep 2020 10:25:58 +0000 (18:25 +0800)
committerRob Clark <robdclark@chromium.org>
Sat, 12 Sep 2020 17:44:57 +0000 (10:44 -0700)
commit08d3ab4b46339bc6f97e83b54a3fb4f8bf8f4cd9
treeb944c081860047821a461ba180f1538055f387a0
parent0a48db562c6264da2ae8013491efd6e8dc780520
drm/msm/a6xx: fix a potential overflow issue

It's allocating an array of a6xx_gpu_state_obj structure rathor than
its pointers.

This patch fix it.

Signed-off-by: Zhenzhong Duan <zhenzhong.duan@gmail.com>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c