summaryrefslogtreecommitdiff
path: root/sys/arch/sparc64/dev/viommu.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/sparc64/dev/viommu.c')
-rw-r--r--sys/arch/sparc64/dev/viommu.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc64/dev/viommu.c b/sys/arch/sparc64/dev/viommu.c
index af8797f4cb5..41d5260931e 100644
--- a/sys/arch/sparc64/dev/viommu.c
+++ b/sys/arch/sparc64/dev/viommu.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: viommu.c,v 1.10 2010/08/07 03:50:01 krw Exp $ */
+/* $OpenBSD: viommu.c,v 1.11 2011/04/07 15:30:16 miod Exp $ */
/* $NetBSD: iommu.c,v 1.47 2002/02/08 20:03:45 eeh Exp $ */
/*
@@ -614,7 +614,7 @@ viommu_dvmamap_append_range(bus_dma_tag_t t, bus_dmamap_t map, paddr_t pa,
sgend = sgstart + length - 1;
#ifdef DIAGNOSTIC
- if (sgstart == NULL || sgstart > sgend) {
+ if (sgstart == 0 || sgstart > sgend) {
printf("append range invalid mapping for %lx "
"(0x%llx - 0x%llx)\n", pa, sgstart, sgend);
map->dm_nsegs = 0;