aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
diff options
context:
space:
mode:
authorEric Sandeen <[email protected]>2025-02-11 20:14:21 +0000
committerNamjae Jeon <[email protected]>2025-03-05 12:53:20 +0000
commitfda94a9919fd632033979ad7765a99ae3cab9289 (patch)
treea81abf0d5590179ae4e971bf95a86d0b5f0d906a /drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c
parentexfat: fix soft lockup in exfat_clear_bitmap (diff)
downloadkernel-fda94a9919fd632033979ad7765a99ae3cab9289.tar.gz
kernel-fda94a9919fd632033979ad7765a99ae3cab9289.zip
exfat: short-circuit zero-byte writes in exfat_file_write_iter
When generic_write_checks() returns zero, it means that iov_iter_count() is zero, and there is no work to do. Simply return success like all other filesystems do, rather than proceeding down the write path, which today yields an -EFAULT in generic_perform_write() via the (fault_in_iov_iter_readable(i, bytes) == bytes) check when bytes == 0. Fixes: 11a347fb6cef ("exfat: change to get file size from DataLength") Reported-by: Noah <[email protected]> Signed-off-by: Eric Sandeen <[email protected]> Reviewed-by: Yuezhang Mo <[email protected]> Signed-off-by: Namjae Jeon <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mes.c')
0 files changed, 0 insertions, 0 deletions