Skip to content
Commit ff2d2384 authored by Michel Dänzer's avatar Michel Dänzer Committed by Christian König
Browse files

dma-buf/poll: Get a file reference for outstanding fence callbacks



This makes sure we don't hit the

	BUG_ON(dmabuf->cb_in.active || dmabuf->cb_out.active);

in dma_buf_release, which could be triggered by user space closing the
dma-buf file description while there are outstanding fence callbacks
from dma_buf_poll.

Cc: stable@vger.kernel.org
Signed-off-by: default avatarMichel Dänzer <mdaenzer@redhat.com>
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210723075857.4065-1-michel@daenzer.net
Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
parent b3ec8cdf
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment