diff options
Diffstat (limited to 'sys/i386/isa/istallion.c')
-rw-r--r-- | sys/i386/isa/istallion.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/i386/isa/istallion.c b/sys/i386/isa/istallion.c index a9341ff..36932b9 100644 --- a/sys/i386/isa/istallion.c +++ b/sys/i386/isa/istallion.c @@ -666,13 +666,12 @@ static stlibrd_t *stli_brdalloc(void) { stlibrd_t *brdp; - brdp = (stlibrd_t *) malloc(sizeof(stlibrd_t), M_TTYS, M_NOWAIT); + brdp = (stlibrd_t *) malloc(sizeof(stlibrd_t), M_TTYS, M_NOWAIT|M_ZERO); if (brdp == (stlibrd_t *) NULL) { printf("STALLION: failed to allocate memory (size=%d)\n", sizeof(stlibrd_t)); return((stlibrd_t *) NULL); } - bzero(brdp, sizeof(stlibrd_t)); return(brdp); } @@ -2513,12 +2512,11 @@ static int stli_initports(stlibrd_t *brdp) for (i = 0, panelnr = 0, panelport = 0; (i < brdp->nrports); i++) { portp = (stliport_t *) malloc(sizeof(stliport_t), M_TTYS, - M_NOWAIT); + M_NOWAIT | M_ZERO); if (portp == (stliport_t *) NULL) { printf("STALLION: failed to allocate port structure\n"); continue; } - bzero(portp, sizeof(stliport_t)); portp->portnr = i; portp->brdnr = brdp->brdnr; |