diff options
author | se <se@FreeBSD.org> | 1996-05-18 17:32:20 +0000 |
---|---|---|
committer | se <se@FreeBSD.org> | 1996-05-18 17:32:20 +0000 |
commit | b4b799e33f2edc21299bd258435748eb5d185497 (patch) | |
tree | 3f8a455ee25bd43bde59ee93f98613def80b7004 /sys/dev | |
parent | 2359f358cc5cd3ce8057341601440b98c7c0b731 (diff) | |
download | FreeBSD-src-b4b799e33f2edc21299bd258435748eb5d185497.zip FreeBSD-src-b4b799e33f2edc21299bd258435748eb5d185497.tar.gz |
Fix range check to actually test the variable that will be used as
an index later.
Submitted by: Erich Stefan Boleyn <erich@uruk.org>
Diffstat (limited to 'sys/dev')
-rw-r--r-- | sys/dev/pci/pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/pci/pci.c b/sys/dev/pci/pci.c index cc445d2..cda0bd9 100644 --- a/sys/dev/pci/pci.c +++ b/sys/dev/pci/pci.c @@ -1,6 +1,6 @@ /************************************************************************** ** -** $Id: pci.c,v 1.48 1996/04/14 20:14:36 se Exp $ +** $Id: pci.c,v 1.49 1996/04/25 06:04:27 asami Exp $ ** ** General subroutines for the PCI bus. ** pci_configure () @@ -1708,7 +1708,7 @@ void not_supported (pcici_t tag, u_long type) printf(", class=0x%02x", class); } - if (subclass < sizeof(subclasses) / sizeof(subclasses[0])) { + if (class < sizeof(subclasses) / sizeof(subclasses[0])) { const subclass_name *p = subclasses[class]; while (p->name && (p->subclass != subclass)) p++; |