Module Name: src
Committed By: mrg
Date: Thu Apr 15 01:57:11 UTC 2021
Modified Files:
src/sys/dev/mvme: mvmebus.c
Log Message:
convert 'extern phys_ram_seg_t mem_clusters[0];' to the '[]' form
so that when this code accesses mem_clustes[0] and mem_clusters[1]
it does't reach out of bounds.
XXX: should be in a header, but it's ugly to fix and i stopped
when bus_dma.c wouldn't build.
To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/sys/dev/mvme/mvmebus.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/dev/mvme/mvmebus.c
diff -u src/sys/dev/mvme/mvmebus.c:1.21 src/sys/dev/mvme/mvmebus.c:1.22
--- src/sys/dev/mvme/mvmebus.c:1.21 Sun Nov 10 21:16:36 2019
+++ src/sys/dev/mvme/mvmebus.c Thu Apr 15 01:57:11 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: mvmebus.c,v 1.21 2019/11/10 21:16:36 chs Exp $ */
+/* $NetBSD: mvmebus.c,v 1.22 2021/04/15 01:57:11 mrg Exp $ */
/*-
* Copyright (c) 2000, 2002 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mvmebus.c,v 1.21 2019/11/10 21:16:36 chs Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mvmebus.c,v 1.22 2021/04/15 01:57:11 mrg Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -80,7 +80,7 @@ const char *mvmebus_irq_name[] = {
"vmeirq4", "vmeirq5", "vmeirq6", "vmeirq7"
};
-extern phys_ram_seg_t mem_clusters[0];
+extern phys_ram_seg_t mem_clusters[];
extern int mem_cluster_cnt;