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");
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to