diff options
Diffstat (limited to 'sys/kern/tty_subr.c')
| -rw-r--r-- | sys/kern/tty_subr.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/kern/tty_subr.c b/sys/kern/tty_subr.c index 7ce49c4d24ad..d0b14966d25f 100644 --- a/sys/kern/tty_subr.c +++ b/sys/kern/tty_subr.c @@ -92,8 +92,10 @@ cblock_alloc_cblocks(number) for (i = 0; i < number; ++i) { tmp = malloc(sizeof(struct cblock), M_TTYS, M_NOWAIT); - if (!tmp) - panic("clist_init: could not allocate cblock"); + if (!tmp) { + printf("cblock_alloc_cblocks: could not malloc cblock"); + break; + } bzero((char *)tmp, sizeof(struct cblock)); cblock_free(tmp); } |
