Date: Tue, 30 Dec 2014 08:50:51 +0000 (UTC) From: Roger Pau Monné <royger@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r276406 - head/sys/dev/vt/hw/vga Message-ID: <201412300850.sBU8oplE086732@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: royger Date: Tue Dec 30 08:50:50 2014 New Revision: 276406 URL: https://svnweb.freebsd.org/changeset/base/276406 Log: vt_vga: fix an off-by-one error This correctly sets the end of the memory region registered by vt_vga. Reported by: marius Modified: head/sys/dev/vt/hw/vga/vt_vga.c Modified: head/sys/dev/vt/hw/vga/vt_vga.c ============================================================================== --- head/sys/dev/vt/hw/vga/vt_vga.c Tue Dec 30 08:50:07 2014 (r276405) +++ head/sys/dev/vt/hw/vga/vt_vga.c Tue Dec 30 08:50:50 2014 (r276406) @@ -1275,7 +1275,7 @@ vtvga_attach(device_t dev) res_id = 0; pseudo_phys_res = bus_alloc_resource(dev, SYS_RES_MEMORY, - &res_id, VGA_MEM_BASE, VGA_MEM_BASE + VGA_MEM_SIZE, + &res_id, VGA_MEM_BASE, VGA_MEM_BASE + VGA_MEM_SIZE - 1, VGA_MEM_SIZE, RF_ACTIVE); if (pseudo_phys_res == NULL) panic("Unable to reserve vt_vga memory");
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412300850.sBU8oplE086732>