aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorSidong Yang <[email protected]>2025-03-19 11:24:01 +0000
committerDavid Sterba <[email protected]>2025-03-31 23:02:26 +0000
commit8e587ab43cb92a9e57f99ea8d6c069ee65863707 (patch)
tree1e82ee19972a0678b1982a6e0dbedb97bd81522b /net/unix/af_unix.c
parentbtrfs: zoned: fix zone finishing with missing devices (diff)
downloadkernel-8e587ab43cb92a9e57f99ea8d6c069ee65863707.tar.gz
kernel-8e587ab43cb92a9e57f99ea8d6c069ee65863707.zip
btrfs: ioctl: don't free iov when btrfs_encoded_read() returns -EAGAIN
Fix a bug in encoded read that mistakenly frees the iov in case btrfs_encoded_read() returns -EAGAIN assuming the structure will be reused. This can happen when when receiving requests concurrently, the io_uring subsystem does not reset the data, and the last free will happen in btrfs_uring_read_finished(). Handle the -EAGAIN error and skip freeing iov. CC: [email protected] # 6.13+ Signed-off-by: Sidong Yang <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions