aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQiang Yu <[email protected]>2019-09-22 15:49:00 +0800
committerChris Wilson <[email protected]>2019-09-22 13:18:46 +0100
commit7fbd0782bf94d46993a7e5c08c0feda8dcab1f76 (patch)
treeee5bbbb85fa326c3cc911ac566c82008967da6ac
parentfb2ee9bf084bcaeff1e5be100decc0eacb4af2d5 (diff)
dma-buf/resv: fix exclusive fence get
This causes kernel crash when testing lima driver. Cc: Christian König <[email protected]> Fixes: b8c036dfc66f ("dma-buf: simplify reservation_object_get_fences_rcu a bit") Signed-off-by: Qiang Yu <[email protected]> Reviewed-by: Chris Wilson <[email protected]> Signed-off-by: Chris Wilson <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
-rw-r--r--drivers/dma-buf/dma-resv.c2
1 files changed, 1 insertions, 1 deletions
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 @@ unlock:
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);