Add M_WAITOK
This commit is contained in:
parent
340c35de6a
commit
0c977c9c53
@ -73,9 +73,9 @@ g_stat_new(void *id)
|
||||
break;
|
||||
}
|
||||
if (spp == NULL) {
|
||||
spp = g_malloc(sizeof *spp, M_ZERO);
|
||||
spp = g_malloc(sizeof *spp, M_ZERO | M_WAITOK);
|
||||
TAILQ_INSERT_TAIL(&pagelist, spp, list);
|
||||
spp->stat = g_malloc(PAGE_SIZE, M_ZERO);
|
||||
spp->stat = g_malloc(PAGE_SIZE, M_ZERO | M_WAITOK);
|
||||
spp->nfree = statsperpage;
|
||||
}
|
||||
gsp = spp->stat;
|
||||
|
@ -149,7 +149,7 @@ allocdev(void)
|
||||
LIST_REMOVE(si, si_hash);
|
||||
} else if (stashed >= DEVT_STASH) {
|
||||
MALLOC(si, struct cdev *, sizeof(*si), M_DEVT,
|
||||
M_USE_RESERVE | M_ZERO);
|
||||
M_USE_RESERVE | M_ZERO | M_WAITOK);
|
||||
} else {
|
||||
si = devt_stash + stashed++;
|
||||
bzero(si, sizeof *si);
|
||||
|
Loading…
x
Reference in New Issue
Block a user