Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/pci NULL-terminate mpii_devices[], this is the end c...
details: https://anonhg.NetBSD.org/src/rev/73c10c2de324
branches: trunk
changeset: 446426:73c10c2de324
user: bouyer <bouyer%NetBSD.org@localhost>
date: Tue Dec 04 19:54:02 2018 +0000
description:
NULL-terminate mpii_devices[], this is the end condition of the loop
in mpii_match(). Noticed by Mike Pumford
diffstat:
sys/dev/pci/mpii.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 3fa42679d497 -r 73c10c2de324 sys/dev/pci/mpii.c
--- a/sys/dev/pci/mpii.c Tue Dec 04 19:34:27 2018 +0000
+++ b/sys/dev/pci/mpii.c Tue Dec 04 19:54:02 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mpii.c,v 1.16 2018/12/03 23:23:30 bouyer Exp $ */
+/* $NetBSD: mpii.c,v 1.17 2018/12/04 19:54:02 bouyer Exp $ */
/* $OpenBSD: mpii.c,v 1.115 2018/08/14 05:22:21 jmatthew Exp $ */
/*
* Copyright (c) 2010, 2012 Mike Belopuhov
@@ -20,7 +20,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mpii.c,v 1.16 2018/12/03 23:23:30 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mpii.c,v 1.17 2018/12/04 19:54:02 bouyer Exp $");
#include "bio.h"
@@ -433,7 +433,8 @@
{ PCI_VENDOR_SYMBIOS, PCI_PRODUCT_SYMBIOS_SAS3508 },
{ PCI_VENDOR_SYMBIOS, PCI_PRODUCT_SYMBIOS_SAS3508_1 },
{ PCI_VENDOR_SYMBIOS, PCI_PRODUCT_SYMBIOS_SAS3516 },
- { PCI_VENDOR_SYMBIOS, PCI_PRODUCT_SYMBIOS_SAS3516_1 }
+ { PCI_VENDOR_SYMBIOS, PCI_PRODUCT_SYMBIOS_SAS3516_1 },
+ { 0, 0}
};
int
Home |
Main Index |
Thread Index |
Old Index