]> 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)
commit57e3b14f46a36078a85f8a8089a33d0c4a58d1f1
tree0ef8b02a7a1b0b9ef838b1234975ff0d0893449e
parentaf50413a9fc6d1647e6f843fde4c29a73550af51
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