]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
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)
committerStefan Bader <stefan.bader@canonical.com>
Mon, 9 Nov 2020 13:49:14 +0000 (14:49 +0100)
commitb872a75936640154ccf914007144632babc9de6c
treeab8aae200b89e4ae7d09e8922c25b31537226781
parentfc0bfd60720c2df42fe473c1a9dce3147ee20366
drm/msm/a6xx: fix a potential overflow issue

BugLink: https://bugs.launchpad.net/bugs/1902115
[ Upstream commit 08d3ab4b46339bc6f97e83b54a3fb4f8bf8f4cd9 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Ian May <ian.may@canonical.com>
drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c