aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu
diff options
context:
space:
mode:
authorLinus Torvalds <[email protected]>2025-03-06 17:53:25 +0000
committerLinus Torvalds <[email protected]>2025-03-06 17:53:25 +0000
commitebb0f38bb47f74b29e267babdbcd2c47d5292aa8 (patch)
tree08d5de22ef643daece4769b36c32ceab024c92c8 /drivers/gpu/drm/amd/amdgpu
parentfs/pipe: do not open-code pipe head/tail logic in FIONREAD (diff)
downloadkernel-ebb0f38bb47f74b29e267babdbcd2c47d5292aa8.tar.gz
kernel-ebb0f38bb47f74b29e267babdbcd2c47d5292aa8.zip
fs/pipe: fix pipe buffer index use in FUSE
This was another case that Rasmus pointed out where the direct access to the pipe head and tail pointers broke on 32-bit configurations due to the type changes. As with the pipe FIONREAD case, fix it by using the appropriate helper functions that deal with the right pipe index sizing. Reported-by: Rasmus Villemoes <[email protected]> Link: https://lore.kernel.org/all/[email protected]/ Fixes: 3d252160b818 ("fs/pipe: Read pipe->{head,tail} atomically outside pipe->mutex")Cc: Oleg > Cc: Mateusz Guzik <[email protected]> Cc: K Prateek Nayak <[email protected]> Cc: Swapnil Sapkal <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu')
0 files changed, 0 insertions, 0 deletions