diff options
author | Charles Longeau <chl@cvs.openbsd.org> | 2007-09-17 15:34:39 +0000 |
---|---|---|
committer | Charles Longeau <chl@cvs.openbsd.org> | 2007-09-17 15:34:39 +0000 |
commit | 32edbddb7c4f4dab431a8576907f802b3848c355 (patch) | |
tree | 2866a513878e0564f5ef12e2b343073d173f4020 /sys/arch/amd64/pci | |
parent | 1d9168709cd84e6ee98534bb1b51d58498dd71ca (diff) |
MALLOC/FREE -> malloc/free and M_ZERO changes
ok krw@
Diffstat (limited to 'sys/arch/amd64/pci')
-rw-r--r-- | sys/arch/amd64/pci/iommu.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/amd64/pci/iommu.c b/sys/arch/amd64/pci/iommu.c index 12be8ffc510..7ff85ca8384 100644 --- a/sys/arch/amd64/pci/iommu.c +++ b/sys/arch/amd64/pci/iommu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: iommu.c,v 1.20 2007/05/27 21:44:23 jason Exp $ */ +/* $OpenBSD: iommu.c,v 1.21 2007/09/17 15:34:38 chl Exp $ */ /* * Copyright (c) 2005 Jason L. Wright (jason@thought.net) @@ -301,12 +301,11 @@ amdgart_probe(struct pcibus_attach_args *pba) goto err; } - scrib = malloc(PAGE_SIZE, M_DEVBUF, M_NOWAIT); + scrib = malloc(PAGE_SIZE, M_DEVBUF, M_NOWAIT|M_ZERO); if (scrib == NULL) { printf("\nGART: didn't get scribble page"); goto err; } - bzero(scrib, PAGE_SIZE); for (count = 0, dev = 24; dev < 32; dev++) { for (func = 0; func < 8; func++) { |