Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:43777 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754165AbcFEWDP (ORCPT ); Sun, 5 Jun 2016 18:03:15 -0400 Subject: Patch "btrfs: fix memory leak during RAID 5/6 device replacement" has been added to the 4.5-stable tree To: scott.talbert@hgst.com, dsterba@suse.com, gregkh@linuxfoundation.org Cc: , From: Date: Sun, 05 Jun 2016 14:48:36 -0700 Message-ID: <146516331614388@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ANSI_X3.4-1968 Content-Transfer-Encoding: 8bit Sender: stable-owner@vger.kernel.org List-ID: This is a note to let you know that I've just added the patch titled btrfs: fix memory leak during RAID 5/6 device replacement to the 4.5-stable tree which can be found at: http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary The filename of the patch is: btrfs-fix-memory-leak-during-raid-5-6-device-replacement.patch and it can be found in the queue-4.5 subdirectory. If you, or anyone else, feels it should not be added to the stable tree, please let know about it. >From 4673272f43ae790ab9ec04e38a7542f82bb8f020 Mon Sep 17 00:00:00 2001 From: Scott Talbert Date: Mon, 9 May 2016 09:14:28 -0400 Subject: btrfs: fix memory leak during RAID 5/6 device replacement From: Scott Talbert commit 4673272f43ae790ab9ec04e38a7542f82bb8f020 upstream. A 'struct bio' is allocated in scrub_missing_raid56_pages(), but it was never freed anywhere. Signed-off-by: Scott Talbert Signed-off-by: David Sterba Signed-off-by: Greg Kroah-Hartman --- fs/btrfs/scrub.c | 2 ++ 1 file changed, 2 insertions(+) --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c @@ -2125,6 +2125,8 @@ static void scrub_missing_raid56_end_io( if (bio->bi_error) sblock->no_io_error_seen = 0; + bio_put(bio); + btrfs_queue_work(fs_info->scrub_workers, &sblock->work); } Patches currently in stable-queue which might be from scott.talbert@hgst.com are queue-4.5/btrfs-fix-memory-leak-during-raid-5-6-device-replacement.patch