]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
Btrfs: fix error handling in __add_reloc_root()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 25 Jun 2012 11:15:23 +0000 (05:15 -0600)
committerChris Mason <chris.mason@fusionio.com>
Mon, 23 Jul 2012 20:27:53 +0000 (16:27 -0400)
commit23291a044c31f9dfdeaf633b631059fb75e5c2c4
tree312f2561eec756a4cb585c6c02069d546880f63f
parent44c44af2f4a6dc1595f1711cf307bd01062fd129
Btrfs: fix error handling in __add_reloc_root()

We dereferenced "node" in the error message after freeing it.  Also
btrfs_panic() can return so we should return an error code instead of
continuing.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
fs/btrfs/relocation.c