diff options
author | Naohiro Aota <naohiro.aota@wdc.com> | 2017-08-25 14:15:14 +0900 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-05 09:41:46 +0200 |
commit | 9a7d93dd2cadf532e5a7c490e05c55d44ea4e583 (patch) | |
tree | 7bc0bad9103813f5eddeb77c59f4da6116e5ba79 /fs/Makefile | |
parent | b08dc7d4cfa124961798fb82aaca7e5fd44a7671 (diff) |
btrfs: fix NULL pointer dereference from free_reloc_roots()
commit bb166d7207432d3c7d10c45dc052f12ba3a2121d upstream.
__del_reloc_root should be called before freeing up reloc_root->node.
If not, calling __del_reloc_root() dereference reloc_root->node, causing
the system BUG.
Fixes: 6bdf131fac23 ("Btrfs: don't leak reloc root nodes on error")
Signed-off-by: Naohiro Aota <naohiro.aota@wdc.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.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/Makefile')
0 files changed, 0 insertions, 0 deletions