Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/dev Return instead of crashing. This is wro...
details: https://anonhg.NetBSD.org/src/rev/7a670219d27f
branches: trunk
changeset: 814099:7a670219d27f
user: christos <christos%NetBSD.org@localhost>
date: Mon Mar 07 00:16:48 2016 +0000
description:
Return instead of crashing. This is wrong, and should be fixed properly.
diffstat:
sys/arch/sparc64/dev/iommu.c | 9 ++++-----
1 files changed, 4 insertions(+), 5 deletions(-)
diffs (32 lines):
diff -r f70961d07bb8 -r 7a670219d27f sys/arch/sparc64/dev/iommu.c
--- a/sys/arch/sparc64/dev/iommu.c Mon Mar 07 00:11:33 2016 +0000
+++ b/sys/arch/sparc64/dev/iommu.c Mon Mar 07 00:16:48 2016 +0000
@@ -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 @@
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 */
Home |
Main Index |
Thread Index |
Old Index