simple-dmabuf-drm: 0 is a valid fd (freedreno)
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> Signed-off-by: Guido Günther <agx@sigxcpu.org> Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
committed by
Pekka Paalanen
parent
029583e56e
commit
324cdf294d
@@ -244,10 +244,7 @@ static int
|
|||||||
fd_bo_export_to_prime(struct buffer *buf)
|
fd_bo_export_to_prime(struct buffer *buf)
|
||||||
{
|
{
|
||||||
buf->dmabuf_fd = fd_bo_dmabuf(buf->fd_bo);
|
buf->dmabuf_fd = fd_bo_dmabuf(buf->fd_bo);
|
||||||
if (buf->dmabuf_fd > 0)
|
return buf->dmabuf_fd < 0;
|
||||||
return 0;
|
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int
|
static int
|
||||||
|
|||||||
Reference in New Issue
Block a user