summaryrefslogtreecommitdiffstats
path: root/sys/x86/iommu
diff options
context:
space:
mode:
authordavide <davide@FreeBSD.org>2014-10-16 18:04:43 +0000
committerdavide <davide@FreeBSD.org>2014-10-16 18:04:43 +0000
commite88bd26b3f101e3aad82304315f731daa60cc6de (patch)
treef232fa8c3b1009450da57b71fb0323893520f81c /sys/x86/iommu
parent8afb9f2a447867f4564d2c596eab8b20d9b2fc54 (diff)
downloadFreeBSD-src-e88bd26b3f101e3aad82304315f731daa60cc6de.zip
FreeBSD-src-e88bd26b3f101e3aad82304315f731daa60cc6de.tar.gz
Follow up to r225617. In order to maximize the re-usability of kernel code
in userland rename in-kernel getenv()/setenv() to kern_setenv()/kern_getenv(). This fixes a namespace collision with libc symbols. Submitted by: kmacy Tested by: make universe
Diffstat (limited to 'sys/x86/iommu')
-rw-r--r--sys/x86/iommu/busdma_dmar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/x86/iommu/busdma_dmar.c b/sys/x86/iommu/busdma_dmar.c
index a397f42..4f00bdd 100644
--- a/sys/x86/iommu/busdma_dmar.c
+++ b/sys/x86/iommu/busdma_dmar.c
@@ -76,7 +76,7 @@ dmar_bus_dma_is_dev_disabled(int domain, int bus, int slot, int func)
snprintf(str, sizeof(str), "hw.busdma.pci%d.%d.%d.%d.bounce",
domain, bus, slot, func);
- env = getenv(str);
+ env = kern_getenv(str);
if (env == NULL)
return (false);
freeenv(env);
OpenPOWER on IntegriCloud