diff options
| author | Hyejeong Choi <[email protected]> | 2025-05-13 02:06:38 +0000 |
|---|---|---|
| committer | Christian König <[email protected]> | 2025-05-14 13:31:23 +0000 |
| commit | 72c7d62583ebce7baeb61acce6057c361f73be4a (patch) | |
| tree | 73e9d5704208aab3be9a6acf5c8ecfdc9047fdb7 /drivers/gpu/drm/scheduler/sched_entity.c | |
| parent | accel/ivpu: Use effective buffer size for zero terminator (diff) | |
| download | kernel-72c7d62583ebce7baeb61acce6057c361f73be4a.tar.gz kernel-72c7d62583ebce7baeb61acce6057c361f73be4a.zip | |
dma-buf: insert memory barrier before updating num_fences
smp_store_mb() inserts memory barrier after storing operation.
It is different with what the comment is originally aiming so Null
pointer dereference can be happened if memory update is reordered.
Signed-off-by: Hyejeong Choi <[email protected]>
Fixes: a590d0fdbaa5 ("dma-buf: Update reservation shared_count after adding the new fence")
CC: [email protected]
Reviewed-by: Christian König <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Christian König <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/scheduler/sched_entity.c')
0 files changed, 0 insertions, 0 deletions
