From: Namjae Jeon Date: Mon, 30 Jul 2012 21:42:11 +0000 (-0700) Subject: hfsplus: use -ENOMEM when kzalloc() fails X-Git-Tag: v3.6-rc1~41^2~31 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=497d48bd27ec1c44b4600e8e98a776188f2e11f2;p=platform%2Fkernel%2Flinux-exynos.git hfsplus: use -ENOMEM when kzalloc() fails Use -ENOMEM return value instead of -EINVAL when kzalloc() fails. Signed-off-by: Namjae Jeon Cc: Christoph Hellwig Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/fs/hfsplus/super.c b/fs/hfsplus/super.c index 47333209..fdafb2d 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) u64 last_fs_block, last_fs_page; int err; - err = -EINVAL; + err = -ENOMEM; sbi = kzalloc(sizeof(*sbi), GFP_KERNEL); if (!sbi) goto out;