hfsplus: use -ENOMEM when kzalloc failed
Subsystems (2)
PATCH 1/1 hfsplus: use -ENOMEM when kzalloc failed
Use -ENOMEM return value instead of -EINVAL when kzalloc failed
Signed-off-by Namjae Jeon <[email protected]>
--- fs/hfsplus/super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/hfsplus/super.c +1 -1
@@ -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