Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/mvme convert 'extern phys_ram_seg_t mem_clusters[0];...
details: https://anonhg.NetBSD.org/src/rev/7943f86d96b7
branches: trunk
changeset: 1020538:7943f86d96b7
user: mrg <mrg%NetBSD.org@localhost>
date: Thu Apr 15 01:57:11 2021 +0000
description:
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.
diffstat:
sys/dev/mvme/mvmebus.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 0b7401576374 -r 7943f86d96b7 sys/dev/mvme/mvmebus.c
--- a/sys/dev/mvme/mvmebus.c Thu Apr 15 01:56:00 2021 +0000
+++ b/sys/dev/mvme/mvmebus.c Thu Apr 15 01:57:11 2021 +0000
@@ -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 @@
"vmeirq4", "vmeirq5", "vmeirq6", "vmeirq7"
};
-extern phys_ram_seg_t mem_clusters[0];
+extern phys_ram_seg_t mem_clusters[];
extern int mem_cluster_cnt;
Home |
Main Index |
Thread Index |
Old Index