]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: Convert from atomic_t to refcount_t on g2d_cmdlist_userptr->refcount
authorXiyu Yang <xiyuyang19@fudan.edu.cn>
Mon, 19 Jul 2021 05:58:51 +0000 (13:58 +0800)
committerInki Dae <inki.dae@samsung.com>
Sat, 21 Aug 2021 16:56:38 +0000 (01:56 +0900)
commit28fb889c7d41c76e5196b08e8ef109b3762f792b
tree0ef8b02a7a1b0b9ef838b1234975ff0d0893449e
parent47d36d7e6f2fdaabd07abd1d4e3d7b0f28691bbf
drm/exynos: Convert from atomic_t to refcount_t on g2d_cmdlist_userptr->refcount

refcount_t type and corresponding API can protect refcounters from
accidental underflow and overflow and further use-after-free situations.

Signed-off-by: Xiyu Yang <xiyuyang19@fudan.edu.cn>
Signed-off-by: Xin Tan <tanxin.ctf@gmail.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_g2d.c