Module Name: src Committed By: christos Date: Mon Mar 7 00:16:48 UTC 2016
Modified Files: src/sys/arch/sparc64/dev: iommu.c Log Message: Return instead of crashing. This is wrong, and should be fixed properly. To generate a diff of this commit: cvs rdiff -u -r1.111 -r1.112 src/sys/arch/sparc64/dev/iommu.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/sparc64/dev/iommu.c diff -u src/sys/arch/sparc64/dev/iommu.c:1.111 src/sys/arch/sparc64/dev/iommu.c:1.112 --- src/sys/arch/sparc64/dev/iommu.c:1.111 Sun Mar 6 19:11:33 2016 +++ src/sys/arch/sparc64/dev/iommu.c Sun Mar 6 19:16:48 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: iommu.c,v 1.111 2016/03/07 00:11:33 christos Exp $ */ +/* $NetBSD: iommu.c,v 1.112 2016/03/07 00:16:48 christos Exp $ */ /* * Copyright (c) 1999, 2000 Matthew R. Green @@ -59,7 +59,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: iommu.c,v 1.111 2016/03/07 00:11:33 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: iommu.c,v 1.112 2016/03/07 00:16:48 christos Exp $"); #include "opt_ddb.h" @@ -746,11 +746,10 @@ iommu_dvmamap_unload(bus_dma_tag_t t, bu bus_size_t sgsize = map->_dm_dvmasize; /* Flush the iommu */ -#ifdef DEBUG if (!map->_dm_dvmastart) { - printf("iommu_dvmamap_unload: No dvmastart is zero\n"); + printf("%s: error dvmastart is zero!\n", __func__); + return; } -#endif iommu_remove(is, map->_dm_dvmastart, map->_dm_dvmasize); /* Flush the caches */