Commit 83dd1376 authored by Chris Wilson's avatar Chris Wilson Committed by Sumit Semwal

dma-fence: Clear fence->status during dma_fence_init()

As the fence->status is an optional field that may be set before
dma_fence_signal() is called to convey that the fence completed with an
error, we have to ensure that it is always set to zero on initialisation
so that the typical use (i.e. unset) always flags a successful completion.
Signed-off-by: default avatarChris Wilson <>
Reviewed-by: default avatarTvrtko Ursulin <>
Reviewed-by: default avatarDaniel Vetter <>
Reviewed-by: default avatarSumit Semwal <>
Signed-off-by: default avatarSumit Semwal <>
parent 011cda58
......@@ -541,6 +541,7 @@ dma_fence_init(struct dma_fence *fence, const struct dma_fence_ops *ops,
fence->context = context;
fence->seqno = seqno;
fence->flags = 0UL;
fence->status = 0;
Markdown is supported
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