From 278b94817a112af750a70ff1c0137b7615e63396 Mon Sep 17 00:00:00 2001 From: Bruce Evans Date: Sat, 14 Oct 1995 05:54:47 +0000 Subject: [PATCH] Don't allow mmapping the page after last video page. Obtained from: syscons.c (bug obtained from original pccons.c) --- sys/i386/isa/pcvt/pcvt_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/i386/isa/pcvt/pcvt_drv.c b/sys/i386/isa/pcvt/pcvt_drv.c index 143d77e1f391..3b9bd042b315 100644 --- a/sys/i386/isa/pcvt/pcvt_drv.c +++ b/sys/i386/isa/pcvt/pcvt_drv.c @@ -741,7 +741,7 @@ do_standard: int pcmmap(Dev_t dev, int offset, int nprot) { - if (offset > 0x20000) + if (offset > 0x20000 - PAGE_SIZE) return -1; return i386_btop((0xa0000 + offset)); }