Skip to contentSkip to conversation

s390/char/vmlogrdr: module initialization function should return negative errors

PATCH In review Marcin Slusarz 2 participants 2 messages May 11, 2008 – May 13, 2008 s390

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 s390/char/vmlogrdr: module initialization function should return negative errors

Cc Martin Schwidefsky <[email protected]>
---
 drivers/s390/char/vmlogrdr.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/s390/char/vmlogrdr.c +1 -1
index d364e0b..e848734 100644
@@ -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;
#1 lore raw

Thanks, I will add this to git390.

Signature · 4 lines
blue skies,
  Martin.

"Reality continues to ruin my life." - Calvin.