diff options
author | Namjae Jeon <linkinjeon@gmail.com> | 2012-07-30 17:42:11 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-07-30 20:25:19 -0400 |
commit | 497d48bd27ec1c44b4600e8e98a776188f2e11f2 (patch) | |
tree | a79dc22a7645db81781d40d0b669b6c00e138e33 /fs/hfsplus/super.c | |
parent | f5974c8f8cf431baf44e7127b669e3b1960f184f (diff) |
hfsplus: use -ENOMEM when kzalloc() fails
Use -ENOMEM return value instead of -EINVAL when kzalloc() fails.
Signed-off-by: Namjae Jeon <linkinjeon@gmail.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/hfsplus/super.c')
-rw-r--r-- | fs/hfsplus/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/hfsplus/super.c b/fs/hfsplus/super.c index 473332098013..fdafb2d71654 100644 --- a/fs/hfsplus/super.c +++ b/fs/hfsplus/super.c | |||
@@ -365,7 +365,7 @@ static int hfsplus_fill_super(struct super_block *sb, void *data, int silent) | |||
365 | u64 last_fs_block, last_fs_page; | 365 | u64 last_fs_block, last_fs_page; |
366 | int err; | 366 | int err; |
367 | 367 | ||
368 | err = -EINVAL; | 368 | err = -ENOMEM; |
369 | sbi = kzalloc(sizeof(*sbi), GFP_KERNEL); | 369 | sbi = kzalloc(sizeof(*sbi), GFP_KERNEL); |
370 | if (!sbi) | 370 | if (!sbi) |
371 | goto out; | 371 | goto out; |