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)
commit8c27cc5b90ed00ed0dc5956b99e455a494ac8970
tree0ef8b02a7a1b0b9ef838b1234975ff0d0893449e
parentb74a29fac6de62f39b594e8f545b3a26db7edb5e
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