提交 3cb2cea1 编写于 作者: M Marcin Slusarz 提交者: Martin Schwidefsky

[S390] vmlogrdr: module initialization function should return negative errors

Signed-off-by: NMarcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: NMartin Schwidefsky <schwidefsky@de.ibm.com>
上级 2069e978
...@@ -858,7 +858,7 @@ static int __init vmlogrdr_init(void) ...@@ -858,7 +858,7 @@ static int __init vmlogrdr_init(void)
for (i=0; i < MAXMINOR; ++i ) { for (i=0; i < MAXMINOR; ++i ) {
sys_ser[i].buffer = (char *) get_zeroed_page(GFP_KERNEL); sys_ser[i].buffer = (char *) get_zeroed_page(GFP_KERNEL);
if (!sys_ser[i].buffer) { if (!sys_ser[i].buffer) {
rc = ENOMEM; rc = -ENOMEM;
break; break;
} }
sys_ser[i].current_position = sys_ser[i].buffer; sys_ser[i].current_position = sys_ser[i].buffer;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册