summaryrefslogtreecommitdiff
path: root/sys/dev/rasops/rasops.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/rasops/rasops.c')
-rw-r--r--sys/dev/rasops/rasops.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/rasops/rasops.c b/sys/dev/rasops/rasops.c
index 1d561e6a23b..66e9c1d95f7 100644
--- a/sys/dev/rasops/rasops.c
+++ b/sys/dev/rasops/rasops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rasops.c,v 1.30 2013/10/20 21:24:00 miod Exp $ */
+/* $OpenBSD: rasops.c,v 1.31 2014/07/12 18:48:52 tedu Exp $ */
/* $NetBSD: rasops.c,v 1.35 2001/02/02 06:01:01 marcus Exp $ */
/*-
@@ -1380,7 +1380,7 @@ rasops_alloc_screen(void *v, void **cookiep,
size = ri->ri_rows * ri->ri_cols * sizeof(struct wsdisplay_charcell);
scr->rs_bs = malloc(size, M_DEVBUF, M_NOWAIT);
if (scr->rs_bs == NULL) {
- free(scr, M_DEVBUF);
+ free(scr, M_DEVBUF, 0);
return (ENOMEM);
}
@@ -1414,8 +1414,8 @@ rasops_free_screen(void *v, void *cookie)
LIST_REMOVE(scr, rs_next);
ri->ri_nscreens--;
- free(scr->rs_bs, M_DEVBUF);
- free(scr, M_DEVBUF);
+ free(scr->rs_bs, M_DEVBUF, 0);
+ free(scr, M_DEVBUF, 0);
}
int