Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4673272f authored by Scott Talbert's avatar Scott Talbert Committed by David Sterba
Browse files

btrfs: fix memory leak during RAID 5/6 device replacement



A 'struct bio' is allocated in scrub_missing_raid56_pages(), but it was never
freed anywhere.

Signed-off-by: default avatarScott Talbert <scott.talbert@hgst.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 2c1984f2
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -2127,6 +2127,8 @@ static void scrub_missing_raid56_end_io(struct bio *bio)
	if (bio->bi_error)
		sblock->no_io_error_seen = 0;

	bio_put(bio);

	btrfs_queue_work(fs_info->scrub_workers, &sblock->work);
}