Module Name: src
Committed By: matt
Date: Sat Mar 5 15:25:52 UTC 2011
Modified Files:
src/sys/arch/powerpc/powerpc: bus_space.c
Log Message:
Only call unmapiodev if va is non-zero.
To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/powerpc/powerpc/bus_space.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/powerpc/powerpc/bus_space.c
diff -u src/sys/arch/powerpc/powerpc/bus_space.c:1.25 src/sys/arch/powerpc/powerpc/bus_space.c:1.26
--- src/sys/arch/powerpc/powerpc/bus_space.c:1.25 Tue Feb 15 19:39:12 2011
+++ src/sys/arch/powerpc/powerpc/bus_space.c Sat Mar 5 15:25:52 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: bus_space.c,v 1.25 2011/02/15 19:39:12 macallan Exp $ */
+/* $NetBSD: bus_space.c,v 1.26 2011/03/05 15:25:52 matt Exp $ */
/*-
* Copyright (c) 1996, 1997, 1998 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.25 2011/02/15 19:39:12 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bus_space.c,v 1.26 2011/03/05 15:25:52 matt Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -684,7 +684,8 @@
printf("memio_unmap: can't free region\n");
}
- unmapiodev(va, size);
+ if (va)
+ unmapiodev(va, size);
}
int