aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-05-29 05:42:19 -0400
committerChris Mason <chris.mason@oracle.com>2010-06-11 15:57:35 -0400
commit4cbd1149fbcc351bdf08ab749867d157905d0d35 (patch)
tree7acb025997c961e594116596a135d023361ee603
parent676e4c86391936795c82ccd11ca9671ee6307936 (diff)
Btrfs: btrfs_iget() returns ERR_PTR
btrfs_iget() returns an ERR_PTR() on failure and not null. Signed-off-by: Dan Carpenter <error27@gmail.com> Signed-off-by: Chris Mason <chris.mason@oracle.com>
-rw-r--r--fs/btrfs/super.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/super.c b/fs/btrfs/super.c
index 9ea711430466..859ddaab5e02 100644
--- a/fs/btrfs/super.c
+++ b/fs/btrfs/super.c
@@ -392,8 +392,8 @@ setup_root:
392 location.offset = 0; 392 location.offset = 0;
393 393
394 inode = btrfs_iget(sb, &location, new_root, &new); 394 inode = btrfs_iget(sb, &location, new_root, &new);
395 if (!inode) 395 if (IS_ERR(inode))
396 return ERR_PTR(-ENOMEM); 396 return ERR_CAST(inode);
397 397
398 /* 398 /*
399 * If we're just mounting the root most subvol put the inode and return 399 * If we're just mounting the root most subvol put the inode and return