Skip to content
Commit 72c7d625 authored by Hyejeong Choi's avatar Hyejeong Choi Committed by Christian König
Browse files

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: default avatarHyejeong Choi <hjeong.choi@samsung.com>
Fixes: a590d0fd ("dma-buf: Update reservation shared_count after adding the new fence")
CC: stable@vger.kernel.org
Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
Link: https://lore.kernel.org/r/20250513020638.GA2329653@au1-maretx-p37.eng.sarc.samsung.com


Signed-off-by: default avatarChristian König <christian.koenig@amd.com>
parent 2f0c6fce
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment