diff options
| author | Yang Xiuwei <yangxiuwei@kylinos.cn> | 2026-08-19 10:54:33 +0800 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-10-05 16:05:43 +0200 |
| commit | a8ea92830b3e0e163d4e829bdcb17ca83c0f951c (patch) | |
| tree | 12f7a0057ccb41e5e71a23ab818a8506d2fa4136 /tools/lib/python/kdoc/parse_data_structs.py | |
| parent | 80a8dbb30d2b00b9c671b02bd73f700f6d20100f (diff) | |
| download | linux-next-a8ea92830b3e0e163d4e829bdcb17ca83c0f951c.tar.gz linux-next-a8ea92830b3e0e163d4e829bdcb17ca83c0f951c.zip | |
btrfs: free iov when btrfs_uring_read_extent() fails
After btrfs_uring_read_extent(), the caller always jumped to out_acct.
That skips kfree(data->iov), which is only correct for -EIOCBQUEUED
where the deferred path owns the iov. On failure, fall through to
out_free instead.
Fixes: 34310c442e17 ("btrfs: add io_uring command for encoded reads (ENCODED_READ ioctl)")
Signed-off-by: Yang Xiuwei <yangxiuwei@kylinos.cn>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tools/lib/python/kdoc/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions
