diff options
author | Scott Talbert <scott.talbert@hgst.com> | 2016-05-09 13:14:28 (GMT) |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-05-16 08:17:58 (GMT) |
commit | 4673272f43ae790ab9ec04e38a7542f82bb8f020 (patch) | |
tree | 136c03e4be575e4466ef9df119b8debdf768a56a /fs/btrfs/scrub.c | |
parent | 2c1984f244838477aab4e5882f4479491ae1084a (diff) | |
download | linux-4673272f43ae790ab9ec04e38a7542f82bb8f020.tar.xz |
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: Scott Talbert <scott.talbert@hgst.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/scrub.c')
-rw-r--r-- | fs/btrfs/scrub.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index d270c70..fa35cdc 100644 --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c @@ -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); } |