[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <lsq.1587683028.177362028@decadent.org.uk>
Date: Fri, 24 Apr 2020 00:04:15 +0100
From: Ben Hutchings <ben@...adent.org.uk>
To: linux-kernel@...r.kernel.org, stable@...r.kernel.org
CC: akpm@...ux-foundation.org, Denis Kirjanov <kda@...ux-powerpc.org>,
"Josef Bacik" <jbacik@...com>,
"Ben Hutchings" <ben.hutchings@...ethink.co.uk>,
"David Sterba" <dsterba@...e.com>, "Chris Mason" <clm@...com>,
"Greg Kroah-Hartman" <gregkh@...uxfoundation.org>,
"Omar Sandoval" <osandov@...com>
Subject: [PATCH 3.16 028/245] Btrfs: fix em leak in find_first_block_group
3.16.83-rc1 review patch. If anyone has any objections, please let me know.
------------------
From: Josef Bacik <jbacik@...com>
commit 187ee58c62c1d0d238d3dc4835869d33e1869906 upstream.
We need to call free_extent_map() on the em we look up.
Signed-off-by: Josef Bacik <jbacik@...com>
Reviewed-by: Omar Sandoval <osandov@...com>
Signed-off-by: David Sterba <dsterba@...e.com>
Signed-off-by: Chris Mason <clm@...com>
Signed-off-by: Ben Hutchings <ben.hutchings@...ethink.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
Signed-off-by: Ben Hutchings <ben@...adent.org.uk>
---
fs/btrfs/extent-tree.c | 1 +
1 file changed, 1 insertion(+)
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -8587,6 +8587,7 @@ static int find_first_block_group(struct
} else {
ret = 0;
}
+ free_extent_map(em);
goto out;
}
path->slots[0]++;
Powered by blists - more mailing lists