diff options
author | bde <bde@FreeBSD.org> | 1995-10-14 05:54:47 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-10-14 05:54:47 +0000 |
commit | c385cd17e39c5ba6ee153be78989086d158e4236 (patch) | |
tree | 0c7d0ac147dcee650a730614ac37558171d07c40 /sys/i386/isa/pcvt/pcvt_drv.c | |
parent | f7f4ce9b820d6f8816539b5d6b2ff18afce1a815 (diff) | |
download | FreeBSD-src-c385cd17e39c5ba6ee153be78989086d158e4236.zip FreeBSD-src-c385cd17e39c5ba6ee153be78989086d158e4236.tar.gz |
Don't allow mmapping the page after last video page.
Obtained from: syscons.c (bug obtained from original pccons.c)
Diffstat (limited to 'sys/i386/isa/pcvt/pcvt_drv.c')
-rw-r--r-- | sys/i386/isa/pcvt/pcvt_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/i386/isa/pcvt/pcvt_drv.c b/sys/i386/isa/pcvt/pcvt_drv.c index 143d77e..3b9bd04 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)); } |