summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2003-02-13 20:07:34 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2003-02-13 20:07:34 +0000
commitcbee9fd7289cca7c6da1af0b7e2c2a7ec5bda7f6 (patch)
tree3184ee52c0a174dfcb45ad09515e448fd796dd4c
parente6c369fe5e40f9e9214acc808dcf770121b19563 (diff)
proper free order; from sturm@
-rw-r--r--sys/dev/pci/agp_i810.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/agp_i810.c b/sys/dev/pci/agp_i810.c
index 21170125048..3a1abb9b9b5 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.3 2002/07/25 23:31:04 fgsch Exp $ */
+/* $OpenBSD: agp_i810.c,v 1.4 2003/02/13 20:07:33 mickey Exp $ */
/* $NetBSD: agp_i810.c,v 1.8 2001/09/20 20:00:16 fvdl Exp $ */
/*-
@@ -268,8 +268,8 @@ agp_i810_alloc_memory(struct vga_pci_softc *sc, int type, vsize_t size)
if ((error = agp_alloc_dmamem(sc->sc_dmat, size, 0,
&mem->am_dmamap, &mem->am_virtual, &mem->am_physical,
mem->am_dmaseg, 1, &mem->am_nseg)) != 0) {
- free(mem, M_DEVBUF);
free(mem->am_dmaseg, M_DEVBUF);
+ free(mem, M_DEVBUF);
printf("agp: agp_alloc_dmamem(%d)\n", error);
return (NULL);
}