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:49:08 +0000 (07:49 -0800)
commit4ae8656075c351ba3a3aefc923550ef2b7280164
tree9a3b561e1a70e3dc856dc725c8d65dc7bc8fa096
parent15c7298ad21e91b0ac7e3fcf753b036d178f8c7e
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