[CI 7/8] init flags

Tvrtko Ursulin tvrtko.ursulin at linux.intel.com
Mon Feb 13 13:48:21 UTC 2023


From: Tvrtko Ursulin <tvrtko.ursulin at intel.com>

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin at intel.com>
---
 drivers/dma-buf/dma-fence.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/dma-buf/dma-fence.c b/drivers/dma-buf/dma-fence.c
index 0bef54b892cb..03f8c8185d50 100644
--- a/drivers/dma-buf/dma-fence.c
+++ b/drivers/dma-buf/dma-fence.c
@@ -652,6 +652,8 @@ static int add_callback(struct dma_fence *fence, struct dma_fence_cb *cb,
 	unsigned long flags;
 	int ret = 0;
 
+	cb->flags = 0;
+
 	if (WARN_ON(!fence || !func))
 		return -EINVAL;
 
@@ -830,6 +832,7 @@ dma_fence_default_wait(struct dma_fence *fence, bool intr, signed long timeout)
 		goto out;
 	}
 
+	cb.base.flags = 0;
 	cb.base.func = dma_fence_default_wait_cb;
 	cb.task = current;
 	trace_printk("  W  %llx:%llu @ %u [%p]\n", fence->context, fence->seqno, fence->waitcount, &cb.base);
-- 
2.34.1



More information about the Intel-gfx-trybot mailing list