* [PATCH] hfsplus: use -ENOMEM when kzalloc failed
@ 2012-06-06 12:26 Namjae Jeon
0 siblings, 0 replies; only message in thread
From: Namjae Jeon @ 2012-06-06 12:26 UTC (permalink / raw)
To: akpm; +Cc: linux-fsdevel, linux-kernel, Namjae Jeon
Use -ENOMEM return value instead of -EINVAL when kzalloc failed
Signed-off-by: Namjae Jeon <linkinjeon@gmail.com>
---
fs/hfsplus/super.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/hfsplus/super.c b/fs/hfsplus/super.c
index a9bca4b..4336d28 100644
--- a/fs/hfsplus/super.c
+++ b/fs/hfsplus/super.c
@@ -347,7 +347,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;
--
1.7.9.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-06-06 12:26 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-06 12:26 [PATCH] hfsplus: use -ENOMEM when kzalloc failed Namjae Jeon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).