Skip to contentSkip to conversation

hfsplus: use -ENOMEM when kzalloc failed

PATCH New Namjae Jeon 1 participant 1 message Jun 6, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hfsplus: use -ENOMEM when kzalloc failed

Use -ENOMEM return value instead of -EINVAL when kzalloc failed

---
 fs/hfsplus/super.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
fs/hfsplus/super.c +1 -1
index a9bca4b..4336d28 100644
@@ -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;
Signature · 1 line
1.7.9.5