diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/compat/common/vfs_syscalls_43.c | 4 | ||||
-rw-r--r-- | sys/dev/pci/sdhc_pci.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sys/compat/common/vfs_syscalls_43.c b/sys/compat/common/vfs_syscalls_43.c index 78a7f9dee56..fd14d857d8b 100644 --- a/sys/compat/common/vfs_syscalls_43.c +++ b/sys/compat/common/vfs_syscalls_43.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_syscalls_43.c,v 1.27 2005/05/26 01:15:12 pedro Exp $ */ +/* $OpenBSD: vfs_syscalls_43.c,v 1.28 2007/10/30 18:13:45 chl Exp $ */ /* $NetBSD: vfs_syscalls_43.c,v 1.4 1996/03/14 19:31:52 christos Exp $ */ /* @@ -424,7 +424,7 @@ compat_43_sys_getdirentries(p, v, retval) if (dp >= edp) error = uiomove(dirbuf, readcnt, &auio); } - FREE(dirbuf, M_TEMP); + free(dirbuf, M_TEMP); } VOP_UNLOCK(vp, 0, p); if (error) diff --git a/sys/dev/pci/sdhc_pci.c b/sys/dev/pci/sdhc_pci.c index 46a7ebe66f0..0e04a2baf51 100644 --- a/sys/dev/pci/sdhc_pci.c +++ b/sys/dev/pci/sdhc_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sdhc_pci.c,v 1.6 2007/09/06 08:01:01 jsg Exp $ */ +/* $OpenBSD: sdhc_pci.c,v 1.7 2007/10/30 18:13:45 chl Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org> @@ -115,8 +115,8 @@ sdhc_pci_attach(struct device *parent, struct device *self, void *aux) nslots = SDHC_PCI_NUM_SLOTS(slotinfo); /* Allocate an array big enough to hold all the possible hosts */ - MALLOC(sc->sc.sc_host, struct sdhc_host **, - sizeof(struct sdhc_host *) * nslots, M_DEVBUF, M_WAITOK); + sc->sc.sc_host = malloc(sizeof(struct sdhc_host *) * nslots, M_DEVBUF, + M_WAITOK); /* XXX: handle 64-bit BARs */ for (reg = SDHC_PCI_BAR_START + SDHC_PCI_FIRST_BAR(slotinfo) * |