From 83d04dc57402ad5b4c644d8ce240049a5245c274 Mon Sep 17 00:00:00 2001 From: YONETANI Tomokazu Date: Thu, 7 Sep 2006 07:14:48 +0000 Subject: [PATCH] Fix malloc->kmalloc leftover to fix kernel without VGA_NO_MODE_CHANGE --- sys/dev/video/i386/vesa/vesa.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/dev/video/i386/vesa/vesa.c b/sys/dev/video/i386/vesa/vesa.c index 358b071bc2..c037af2e2a 100644 --- a/sys/dev/video/i386/vesa/vesa.c +++ b/sys/dev/video/i386/vesa/vesa.c @@ -24,7 +24,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * $FreeBSD: src/sys/i386/isa/vesa.c,v 1.32.2.1 2002/08/13 02:42:33 rwatson Exp $ - * $DragonFly: src/sys/dev/video/i386/vesa/vesa.c,v 1.14 2006/09/05 00:55:44 dillon Exp $ + * $DragonFly: src/sys/dev/video/i386/vesa/vesa.c,v 1.15 2006/09/07 07:14:48 y0netan1 Exp $ */ #include "opt_vga.h" @@ -711,7 +711,7 @@ vesa_bios_init(void) /* expand the array if necessary */ if (modes >= vesa_vmode_max) { vesa_vmode_max += MODE_TABLE_DELTA; - p = malloc(sizeof(*vesa_vmode)*(vesa_vmode_max + 1), + p = kmalloc(sizeof(*vesa_vmode)*(vesa_vmode_max + 1), M_DEVBUF, M_WAITOK); #if VESA_DEBUG > 1 printf("vesa_bios_init(): modes:%d, vesa_mode_max:%d\n", -- 2.41.0