Skip to contentSkip to conversation

drivers/dma-buf: fix the wrong return val

PATCH New Hui Su 1 participant 1 message May 2, 2022

Subsystems (2)
lore
Share & tools
lore

Hui Su

author
#0 lore raw

PATCH 1/1 drivers/dma-buf: fix the wrong return val

The function should return the correct value.

Fixes 64a8f92fd783 ("dma-buf: add dma_fence_unwrap v2")
---
 drivers/dma-buf/st-dma-fence-unwrap.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/dma-buf/st-dma-fence-unwrap.c +3 -3
index 039f016b57be..0f156fca9697 100644
@@ -157,7 +157,7 @@ static int unwrap_array(void *arg)
 	dma_fence_signal(f1);
 	dma_fence_signal(f2);
 	dma_fence_put(array);
-	return 0;
+	return err;
 }
 
 static int unwrap_chain(void *arg)
@@ -199,7 +199,7 @@ static int unwrap_chain(void *arg)
 	dma_fence_signal(f1);
 	dma_fence_signal(f2);
 	dma_fence_put(chain);
-	return 0;
+	return err;
 }
 
 static int unwrap_chain_array(void *arg)
@@ -245,7 +245,7 @@ static int unwrap_chain_array(void *arg)
 	dma_fence_signal(f1);
 	dma_fence_signal(f2);
 	dma_fence_put(chain);
-	return 0;
+	return err;
 }
 
 int dma_fence_unwrap(void)

--
2.34.1