Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci Prevent potential buffer over runs in number of ...
details: https://anonhg.NetBSD.org/src/rev/471f1c4480ee
branches: trunk
changeset: 950296:471f1c4480ee
user: reinoud <reinoud%NetBSD.org@localhost>
date: Sun Jan 24 14:12:36 2021 +0000
description:
Prevent potential buffer over runs in number of BARS
diffstat:
sys/dev/pci/virtio_pci.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (31 lines):
diff -r a28fb4b21adb -r 471f1c4480ee sys/dev/pci/virtio_pci.c
--- a/sys/dev/pci/virtio_pci.c Sun Jan 24 13:33:56 2021 +0000
+++ b/sys/dev/pci/virtio_pci.c Sun Jan 24 14:12:36 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: virtio_pci.c,v 1.20 2021/01/24 01:44:11 christos Exp $ */
+/* $NetBSD: virtio_pci.c,v 1.21 2021/01/24 14:12:36 reinoud Exp $ */
/*
* Copyright (c) 2020 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: virtio_pci.c,v 1.20 2021/01/24 01:44:11 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: virtio_pci.c,v 1.21 2021/01/24 14:12:36 reinoud Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -65,9 +65,9 @@
bus_size_t sc_mapped_iosize;
/* BARs */
- bus_space_tag_t sc_bars_iot[4];
- bus_space_handle_t sc_bars_ioh[4];
- bus_size_t sc_bars_iosize[4];
+ bus_space_tag_t sc_bars_iot[NMAPREG];
+ bus_space_handle_t sc_bars_ioh[NMAPREG];
+ bus_size_t sc_bars_iosize[NMAPREG];
/* notify space */
bus_space_tag_t sc_notify_iot;
Home |
Main Index |
Thread Index |
Old Index