projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb2ee9b
)
dma-buf/resv: fix exclusive fence get
author
Qiang Yu
<yuq825@gmail.com>
Sun, 22 Sep 2019 07:49:00 +0000
(15:49 +0800)
committer
Chris Wilson
<chris@chris-wilson.co.uk>
Sun, 22 Sep 2019 12:18:46 +0000
(13:18 +0100)
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>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link:
https://patchwork.freedesktop.org/patch/msgid/20190922074900.853-1-yuq825@gmail.com
drivers/dma-buf/dma-resv.c
patch
|
blob
|
history
diff --git
a/drivers/dma-buf/dma-resv.c
b/drivers/dma-buf/dma-resv.c
index
42a8f3f
..
7090025
100644
(file)
--- 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);