Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/ic change the malloc arg from NOWAIT to WAITOK; poin...



details:   https://anonhg.NetBSD.org/src/rev/69604cf25d5b
branches:  trunk
changeset: 518852:69604cf25d5b
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Dec 06 19:54:02 2001 +0000

description:
change the malloc arg from NOWAIT to WAITOK; pointed out by lennard.

diffstat:

 sys/dev/ic/pckbc.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7b8f18bcb1e7 -r 69604cf25d5b sys/dev/ic/pckbc.c
--- a/sys/dev/ic/pckbc.c        Thu Dec 06 19:52:56 2001 +0000
+++ b/sys/dev/ic/pckbc.c        Thu Dec 06 19:54:02 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pckbc.c,v 1.17 2001/12/06 19:52:56 christos Exp $ */
+/* $NetBSD: pckbc.c,v 1.18 2001/12/06 19:54:02 christos Exp $ */
 
 /*
  * Copyright (c) 1998
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pckbc.c,v 1.17 2001/12/06 19:52:56 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pckbc.c,v 1.18 2001/12/06 19:54:02 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -310,7 +310,7 @@
 
        if (t->t_slotdata[slot] == NULL) {
                t->t_slotdata[slot] = malloc(sizeof(struct pckbc_slotdata),
-                   M_DEVBUF, M_NOWAIT);
+                   M_DEVBUF, M_WAITOK);
                pckbc_init_slotdata(t->t_slotdata[slot]);
                alloced++;
        }



Home | Main Index | Thread Index | Old Index