lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Fri, 23 Aug 2013 08:30:20 +0800 From: Wei Yongjun <weiyj.lk@...il.com> To: jaegeuk.kim@...sung.com, namjae.jeon@...sung.com Cc: yongjun_wei@...ndmicro.com.cn, linux-f2fs-devel@...ts.sourceforge.net, linux-kernel@...r.kernel.org Subject: [PATCH -next] f2fs: fix error return code in init_f2fs_fs() From: Wei Yongjun <yongjun_wei@...ndmicro.com.cn> Fix to return -ENOMEM in the kset create and add error handling case instead of 0, as done elsewhere in this function. Introduced by commit b59d0bae6ca30c496f298881616258f9cde0d9c6. (f2fs: add sysfs support for controlling the gc_thread) Signed-off-by: Wei Yongjun <yongjun_wei@...ndmicro.com.cn> --- fs/f2fs/super.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 66d1ec1..33a809f 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1013,8 +1013,10 @@ static int __init init_f2fs_fs(void) if (err) goto fail; f2fs_kset = kset_create_and_add("f2fs", NULL, fs_kobj); - if (!f2fs_kset) + if (!f2fs_kset) { + err = -ENOMEM; goto fail; + } err = register_filesystem(&f2fs_fs_type); if (err) goto fail; -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists