]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - fs/jfs/super.c
[PATCH] JFS: return correct error when i-node allocation failed
[mv-sheeva.git] / fs / jfs / super.c
index 143bcd1d5eaa42f0529596676c85c16304a3e995..fc6951587c6bcb50d9b07880a11a1643f0539f97 100644 (file)
@@ -422,7 +422,7 @@ static int jfs_fill_super(struct super_block *sb, void *data, int silent)
 
        sbi = kzalloc(sizeof (struct jfs_sb_info), GFP_KERNEL);
        if (!sbi)
-               return -ENOSPC;
+               return -ENOMEM;
        sb->s_fs_info = sbi;
        sbi->sb = sb;
        sbi->uid = sbi->gid = sbi->umask = -1;