projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30b4caf
)
Btrfs: check the return value from set_anon_super
author
Chris Mason
<chris.mason@oracle.com>
Mon, 13 Jun 2011 15:28:50 +0000
(11:28 -0400)
committer
Chris Mason
<chris.mason@oracle.com>
Mon, 13 Jun 2011 15:28:50 +0000
(11:28 -0400)
Al Viro noticed we weren't checking for set_anon_super failures. This
adds the required checks.
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/disk-io.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/disk-io.c
b/fs/btrfs/disk-io.c
index 9f68c68986535fbdbd21f01abad64906e19fde68..20c111b3fa0d545ac58a2da2e142b7076d011f21 100644
(file)
--- a/
fs/btrfs/disk-io.c
+++ b/
fs/btrfs/disk-io.c
@@
-1312,7
+1312,9
@@
again:
spin_lock_init(&root->cache_lock);
init_waitqueue_head(&root->cache_wait);
- set_anon_super(&root->anon_super, NULL);
+ ret = set_anon_super(&root->anon_super, NULL);
+ if (ret)
+ goto fail;
if (btrfs_root_refs(&root->root_item) == 0) {
ret = -ENOENT;