Btrfs: fix memory leak of chunks' extent map
authorLiu Bo <bo.li.liu@oracle.com>
Sun, 29 Sep 2013 02:33:16 +0000 (10:33 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 20 Dec 2013 15:45:12 +0000 (07:45 -0800)
commitfb5834ff2b2823e1eaecd920e2ade3e07f4a42f9
treeaf2fc672caf897280b39d2eb1ad4a4f11704e2f7
parent2845c3628961c64e8e3fd6987234a818cfeadb35
Btrfs: fix memory leak of chunks' extent map

commit 7d3d1744f8a7d62e4875bd69cc2192a939813880 upstream.

As we're hold a ref on looking up the extent map, we need to drop the ref
before returning to callers.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/btrfs/volumes.c