[PATCH] fbmem: Convert from atomic_t to refcount_t on fb_info->count

Sam Ravnborg sam at ravnborg.org
Mon Jul 19 20:19:50 UTC 2021


Hi Xiyu, Xin,
On Mon, Jul 19, 2021 at 01:59:45PM +0800, Xiyu Yang wrote:
> 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 at fudan.edu.cn>
> Signed-off-by: Xin Tan <tanxin.ctf at gmail.com>

Looks like a nice improvement, thanks.
Applied to drm-misc-next, it will appear in -next in a week or so.

	Sam


More information about the dri-devel mailing list