summaryrefslogtreecommitdiff
path: root/fs/hfsplus/super.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2014-08-25 13:58:50 +1000
committerStephen Rothwell <sfr@canb.auug.org.au>2014-08-25 13:58:50 +1000
commitc7fa5bfd3e6518947b8b33fa53aaedc6bf9f4b7e (patch)
treeb95e69d3b7c95c5852e3abe45e60edd7972edce2 /fs/hfsplus/super.c
parent20e78eeb1b448655dfdc3377f45b3e49ac5e8e99 (diff)
parenta7d66c114cee965d4a6d719b9526e168e9a31d45 (diff)
Merge branch 'akpm-current/current'
Diffstat (limited to 'fs/hfsplus/super.c')
-rw-r--r--fs/hfsplus/super.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/hfsplus/super.c b/fs/hfsplus/super.c
index 4cf2024b87da..593af2fdcc2d 100644
--- a/fs/hfsplus/super.c
+++ b/fs/hfsplus/super.c
@@ -515,7 +515,9 @@ static int hfsplus_fill_super(struct super_block *sb, void *data, int silent)
err = hfs_find_init(sbi->cat_tree, &fd);
if (err)
goto out_put_root;
- hfsplus_cat_build_key(sb, fd.search_key, HFSPLUS_ROOT_CNID, &str);
+ err = hfsplus_cat_build_key(sb, fd.search_key, HFSPLUS_ROOT_CNID, &str);
+ if (unlikely(err < 0))
+ goto out_put_root;
if (!hfs_brec_read(&fd, &entry, sizeof(entry))) {
hfs_find_exit(&fd);
if (entry.type != cpu_to_be16(HFSPLUS_FOLDER))