summaryrefslogtreecommitdiff
path: root/include/net/aligned_data.h
diff options
context:
space:
mode:
authorZilin Guan <zilin@seu.edu.cn>2025-11-05 03:53:21 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-11-24 10:37:48 +0100
commit6c569c95d0216caeed626f19c0e80c46872cb956 (patch)
tree6196f620e6583433027a26decb6203eebc8e8860 /include/net/aligned_data.h
parent72b3b2e2c6c352ffaba5b9d2ad88c3632a312d65 (diff)
btrfs: scrub: put bio after errors in scrub_raid56_parity_stripe()
commit 5fea61aa1ca70c4b3738eebad9ce2d7e7938ebbd upstream. scrub_raid56_parity_stripe() allocates a bio with bio_alloc(), but fails to release it on some error paths, leading to a potential memory leak. Add the missing bio_put() calls to properly drop the bio reference in those error cases. Fixes: 1009254bf22a3 ("btrfs: scrub: use scrub_stripe to implement RAID56 P/Q scrub") CC: stable@vger.kernel.org # 6.6+ Reviewed-by: Qu Wenruo <wqu@suse.com> Signed-off-by: Zilin Guan <zilin@seu.edu.cn> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions