mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 17:54:13 +08:00
[S390] vmlogrdr: module initialization function should return negative errors
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
This commit is contained in:
parent
2069e978d5
commit
3cb2cea15e
@ -858,7 +858,7 @@ static int __init vmlogrdr_init(void)
|
||||
for (i=0; i < MAXMINOR; ++i ) {
|
||||
sys_ser[i].buffer = (char *) get_zeroed_page(GFP_KERNEL);
|
||||
if (!sys_ser[i].buffer) {
|
||||
rc = ENOMEM;
|
||||
rc = -ENOMEM;
|
||||
break;
|
||||
}
|
||||
sys_ser[i].current_position = sys_ser[i].buffer;
|
||||
|
Loading…
Reference in New Issue
Block a user