From: Naohiro Aota Date: Thu, 6 Jun 2013 09:56:34 +0000 (+0000) Subject: btrfs: Drop inode if inode root is NULL X-Git-Tag: v3.10-rc6~9^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6379ef9fb2482a92b5fe09f927d6ce1f989c0c6d;p=pandora-kernel.git btrfs: Drop inode if inode root is NULL There is a path where btrfs_drop_inode() is called with its inode's root is NULL: In btrfs_new_inode(), when btrfs_set_inode_index() fails, iput() is called. We should handle this case before taking look at the root->root_item. Signed-off-by: Naohiro Aota Reviewed-by: Miao Xie Signed-off-by: Josef Bacik Signed-off-by: Chris Mason --- Reading git-diff-tree failed