summaryrefslogtreecommitdiff
path: root/fs/nfs_common
diff options
context:
space:
mode:
authorJosef Bacik <josef@toxicpanda.com>2019-12-06 09:37:18 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-04 13:38:56 +0100
commit96657a555855ccbb1aa3b0aaee0647ea31c5dab2 (patch)
treee2078d8fd0f0c4d125b2c624a0310fc65609a328 /fs/nfs_common
parent7875fd38fea0335e16f3ed9441eb88edad37f614 (diff)
btrfs: do not leak reloc root if we fail to read the fs root
commit ca1aa2818a53875cfdd175fb5e9a2984e997cce9 upstream. If we fail to read the fs root corresponding with a reloc root we'll just break out and free the reloc roots. But we remove our current reloc_root from this list higher up, which means we'll leak this reloc_root. Fix this by adding ourselves back to the reloc_roots list so we are properly cleaned up. CC: stable@vger.kernel.org # 4.4+ Reviewed-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Signed-off-by: Josef Bacik <josef@toxicpanda.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/nfs_common')
0 files changed, 0 insertions, 0 deletions