summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2006-12-30 19:14:55 +0000
committermiod <miod@openbsd.org>2006-12-30 19:14:55 +0000
commit5f2632a9955f9f2323b10891ba35e1de5b028be6 (patch)
tree2097e883d1e8475508769594fe6525fed86d996c /sys/dev
parentadd -A to usage(). (diff)
downloadwireguard-openbsd-5f2632a9955f9f2323b10891ba35e1de5b028be6.tar.xz
wireguard-openbsd-5f2632a9955f9f2323b10891ba35e1de5b028be6.zip
In agp_i810_alloc_memory(), do not check for sc_maxmem limit reached, as the
caller has already done this. Test matthieu@ ok deraadt@
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pci/agp_i810.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/pci/agp_i810.c b/sys/dev/pci/agp_i810.c
index d818099a0fb..3ba0869c061 100644
--- a/sys/dev/pci/agp_i810.c
+++ b/sys/dev/pci/agp_i810.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: agp_i810.c,v 1.13 2006/05/15 08:27:19 dim Exp $ */
+/* $OpenBSD: agp_i810.c,v 1.14 2006/12/30 19:14:55 miod Exp $ */
/* $NetBSD: agp_i810.c,v 1.15 2003/01/31 00:07:39 thorpej Exp $ */
/*-
@@ -540,9 +540,6 @@ agp_i810_alloc_memory(struct vga_pci_softc *sc, int type, vsize_t size)
if ((size & (AGP_PAGE_SIZE - 1)) != 0)
return 0;
- if (sc->sc_allocated + size > sc->sc_maxmem)
- return 0;
-
if (type == 1) {
/*
* Mapping local DRAM into GATT.