diff options
| author | Hyejeong Choi <hjeong.choi@samsung.com> | 2025-05-12 21:06:38 -0500 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-05-22 14:10:04 +0200 |
| commit | 3becc659f9cb76b481ad1fb71f54d5c8d6332d3f (patch) | |
| tree | 011bb01b9ee768fc931cbeb1dd52b6ec5aaaa901 /drivers/net/hyperv | |
| parent | 01dfc57326f83c5dc225497fb326c33f7abead3f (diff) | |
| download | linux-3becc659f9cb76b481ad1fb71f54d5c8d6332d3f.tar.gz linux-3becc659f9cb76b481ad1fb71f54d5c8d6332d3f.tar.bz2 linux-3becc659f9cb76b481ad1fb71f54d5c8d6332d3f.zip | |
dma-buf: insert memory barrier before updating num_fences
commit 72c7d62583ebce7baeb61acce6057c361f73be4a upstream.
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 <hjeong.choi@samsung.com>
Fixes: a590d0fdbaa5 ("dma-buf: Update reservation shared_count after adding the new fence")
CC: stable@vger.kernel.org
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://lore.kernel.org/r/20250513020638.GA2329653@au1-maretx-p37.eng.sarc.samsung.com
Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/hyperv')
0 files changed, 0 insertions, 0 deletions
