]> git.baikalelectronics.ru Git - kernel.git/commit
dma-buf: Fix one use-after-free of fence
authorxinhui pan <xinhui.pan@amd.com>
Thu, 7 Jul 2022 08:02:41 +0000 (16:02 +0800)
committerChristian König <christian.koenig@amd.com>
Thu, 7 Jul 2022 08:24:59 +0000 (10:24 +0200)
commit288ce4bbf414b9a444cbaee35c8d3d20e07afdb1
treec367b7f598d8f1cb4ee42ee354469cc15bf67564
parentf24c3c38b17685cbb51089612441d1358d9fe271
dma-buf: Fix one use-after-free of fence

Need get the new fence when we replace the old one.

Fixes: 9bed1686788fb ("dma-buf & drm/amdgpu: remove dma_resv workaround")
Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220707080241.20060-1-xinhui.pan@amd.com
Signed-off-by: Christian König <christian.koenig@amd.com>
drivers/dma-buf/dma-resv.c