summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons/scvtb.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/syscons/scvtb.c')
-rw-r--r--sys/dev/syscons/scvtb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/syscons/scvtb.c b/sys/dev/syscons/scvtb.c
index 6712e9b..8a0a24f 100644
--- a/sys/dev/syscons/scvtb.c
+++ b/sys/dev/syscons/scvtb.c
@@ -61,7 +61,7 @@ sc_vtb_init(sc_vtb_t *vtb, int type, int cols, int rows, void *buf, int wait)
vtb->vtb_buffer =
(vm_offset_t)malloc(cols*rows*sizeof(u_int16_t),
M_DEVBUF,
- (wait) ? M_WAITOK : M_NOWAIT);
+ (wait) ? 0 : M_NOWAIT);
if (vtb->vtb_buffer != 0) {
bzero((void *)sc_vtb_pointer(vtb, 0),
cols*rows*sizeof(u_int16_t));
OpenPOWER on IntegriCloud