All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] dma-buf/resv: fix exclusive fence get
@ 2019-09-22  7:49 ` Qiang Yu
  0 siblings, 0 replies; 16+ messages in thread
From: Qiang Yu @ 2019-09-22  7:49 UTC (permalink / raw)
  To: dri-devel
  Cc: lima, Sumit Semwal, linux-media, linaro-mm-sig, Qiang Yu,
	Christian König

This causes kernel crash when testing lima driver.

Cc: Christian König <christian.koenig@amd.com>
Fixes: b8c036dfc66f ("dma-buf: simplify reservation_object_get_fences_rcu a bit")
Signed-off-by: Qiang Yu <yuq825@gmail.com>
---
 drivers/dma-buf/dma-resv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/dma-buf/dma-resv.c b/drivers/dma-buf/dma-resv.c
index 42a8f3f11681..709002515550 100644
--- a/drivers/dma-buf/dma-resv.c
+++ b/drivers/dma-buf/dma-resv.c
@@ -471,7 +471,7 @@ int dma_resv_get_fences_rcu(struct dma_resv *obj,
 	if (pfence_excl)
 		*pfence_excl = fence_excl;
 	else if (fence_excl)
-		shared[++shared_count] = fence_excl;
+		shared[shared_count++] = fence_excl;
 
 	if (!shared_count) {
 		kfree(shared);
-- 
2.17.1


^ permalink raw reply related	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2019-10-10 14:33 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-22  7:49 [PATCH] dma-buf/resv: fix exclusive fence get Qiang Yu
2019-09-22  7:49 ` Qiang Yu
2019-09-22 12:17 ` Chris Wilson
2019-09-22 12:17   ` Chris Wilson
2019-09-22 12:50   ` Chris Wilson
2019-09-22 12:50     ` Chris Wilson
2019-10-10 14:27     ` Qiang Yu
2019-10-10 14:27       ` Qiang Yu
2019-10-10 14:33       ` Koenig, Christian
2019-10-10 14:33         ` Koenig, Christian
2019-09-30  7:22 ` Daniel Vetter
2019-09-30  7:22   ` Daniel Vetter
2019-09-30  8:57   ` Koenig, Christian
2019-09-30  8:57     ` Koenig, Christian
2019-10-08 16:43     ` Daniel Vetter
2019-10-08 16:43       ` Daniel Vetter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.