summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-02-03 21:19:58 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2026-02-03 21:19:58 +0300
commitde0674d9bc69699c497477d45172493393ae9007 (patch)
tree9de3d2c2199c7864801b59264888b88d9b846b14
parentd0452e3ea094e1fd4959fb3fd67f8827a4c04743 (diff)
parent29fb415a6a72c9207d118dd0a7a37184a14a3680 (diff)
downloadlinux-de0674d9bc69699c497477d45172493393ae9007.tar.xz
Merge tag 'for-6.19-rc8-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux
Pull btrfs fix from David Sterba: "A regression fix for a memory leak when raid56 is used" * tag 'for-6.19-rc8-tag' of git://git.kernel.org/pub/scm/linux/kernel/git/kdave/linux: btrfs: raid56: fix memory leak of btrfs_raid_bio::stripe_uptodate_bitmap
-rw-r--r--fs/btrfs/raid56.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/btrfs/raid56.c b/fs/btrfs/raid56.c
index f38d8305e46d..baadaaa189c0 100644
--- a/fs/btrfs/raid56.c
+++ b/fs/btrfs/raid56.c
@@ -150,6 +150,7 @@ static void scrub_rbio_work_locked(struct work_struct *work);
static void free_raid_bio_pointers(struct btrfs_raid_bio *rbio)
{
bitmap_free(rbio->error_bitmap);
+ bitmap_free(rbio->stripe_uptodate_bitmap);
kfree(rbio->stripe_pages);
kfree(rbio->bio_paddrs);
kfree(rbio->stripe_paddrs);