]> git.baikalelectronics.ru Git - 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)
commit0fd7cfa06c545b268c2b1b7923c9eb232b5a0742
tree312f2561eec756a4cb585c6c02069d546880f63f
parent220bc3908e8c9e5b0ae7ca18488fe63591f14591
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