projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f5974c8
)
hfsplus: use -ENOMEM when kzalloc() fails
author
Namjae Jeon
<linkinjeon@gmail.com>
Mon, 30 Jul 2012 21:42:11 +0000
(14:42 -0700)
committer
Linus Torvalds
<torvalds@linux-foundation.org>
Tue, 31 Jul 2012 00:25:19 +0000
(17:25 -0700)
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>
fs/hfsplus/super.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/hfsplus/super.c
b/fs/hfsplus/super.c
index 47333209801378c5cbd5baef0c948c1767a4fa2a..fdafb2d71654740776bd1b77931b955da350ecad 100644
(file)
--- 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 = -E
INVAL
;
+ err = -E
NOMEM
;
sbi = kzalloc(sizeof(*sbi), GFP_KERNEL);
if (!sbi)
goto out;