projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
676e4c8
)
Btrfs: btrfs_iget() returns ERR_PTR
author
Dan Carpenter
<error27@gmail.com>
Sat, 29 May 2010 09:42:19 +0000
(09:42 +0000)
committer
Chris Mason
<chris.mason@oracle.com>
Fri, 11 Jun 2010 19:57:35 +0000
(15:57 -0400)
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>
fs/btrfs/super.c
patch
|
blob
|
history
diff --git
a/fs/btrfs/super.c
b/fs/btrfs/super.c
index 9ea711430466e29ba1e52175988bc1891ce01fa5..859ddaab5e02753a070f4270252222b69ec9fa9c 100644
(file)
--- a/
fs/btrfs/super.c
+++ b/
fs/btrfs/super.c
@@
-392,8
+392,8
@@
setup_root:
location.offset = 0;
inode = btrfs_iget(sb, &location, new_root, &new);
- if (
!inode
)
- return ERR_
PTR(-ENOMEM
);
+ if (
IS_ERR(inode)
)
+ return ERR_
CAST(inode
);
/*
* If we're just mounting the root most subvol put the inode and return