aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorWaiman Long <[email protected]>2025-08-11 14:11:47 +0000
committerThomas Gleixner <[email protected]>2025-08-11 15:53:21 +0000
commitdfb36e4a8db0cd56f92d4cb445f54e85a9b40897 (patch)
tree5ee89c56ec9118904cbd94a5b1208be50d68117a /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parentfutex: Move futex cleanup to __mmdrop() (diff)
downloadkernel-dfb36e4a8db0cd56f92d4cb445f54e85a9b40897.tar.gz
kernel-dfb36e4a8db0cd56f92d4cb445f54e85a9b40897.zip
futex: Use user_write_access_begin/_end() in futex_put_value()
Commit cec199c5e39b ("futex: Implement FUTEX2_NUMA") introduced the futex_put_value() helper to write a value to the given user address. However, it uses user_read_access_begin() before the write. For architectures that differentiate between read and write accesses, like PowerPC, futex_put_value() fails with -EFAULT. Fix that by using the user_write_access_begin/user_write_access_end() pair instead. Fixes: cec199c5e39b ("futex: Implement FUTEX2_NUMA") Signed-off-by: Waiman Long <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/all/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions