From: Marcin Slusarz Date: Thu, 15 May 2008 14:52:32 +0000 (+0200) Subject: [S390] vmlogrdr: module initialization function should return negative errors X-Git-Tag: v2.6.26-rc3~31^2~7 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=3cb2cea15e707dd030b3293d6d08183da369d291;p=linux-2.6-omap-h63xx.git [S390] vmlogrdr: module initialization function should return negative errors Signed-off-by: Marcin Slusarz Signed-off-by: Martin Schwidefsky --- diff --git a/drivers/s390/char/vmlogrdr.c b/drivers/s390/char/vmlogrdr.c index d364e0bfae1..e8487347e4d 100644 --- a/drivers/s390/char/vmlogrdr.c +++ b/drivers/s390/char/vmlogrdr.c @@ -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;