Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 497d48bd authored by Namjae Jeon's avatar Namjae Jeon Committed by Linus Torvalds
Browse files

hfsplus: use -ENOMEM when kzalloc() fails



Use -ENOMEM return value instead of -EINVAL when kzalloc() fails.

Signed-off-by: default avatarNamjae Jeon <linkinjeon@gmail.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent f5974c8f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;