Fix a wrong index value for edid_products[] inside #ifdef EDIDVERBOSE in
edid_findproduct(). From Yasushi Oshima via FUKAUMI Naoki in udl(4) patch.
This commit is contained in:
parent
929c691c07
commit
c03477f121
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: edid.c,v 1.5 2007/03/07 19:56:40 macallan Exp $ */
|
||||
/* $NetBSD: edid.c,v 1.6 2009/11/14 09:19:41 tsutsui Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2006 Itronix Inc.
|
||||
|
@ -32,7 +32,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: edid.c,v 1.5 2007/03/07 19:56:40 macallan Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: edid.c,v 1.6 2009/11/14 09:19:41 tsutsui Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -101,7 +101,7 @@ edid_findproduct(const char *vendor, uint16_t product)
|
|||
#ifdef EDIDVERBOSE
|
||||
int n;
|
||||
|
||||
for (n = 0; n < edid_nvendors; n++)
|
||||
for (n = 0; n < edid_nproducts; n++)
|
||||
if ((edid_products[n].product == product) &&
|
||||
(memcmp(edid_products[n].vendor, vendor, 3) == 0))
|
||||
return (edid_products[n].name);
|
||||
|
|
Loading…
Reference in New Issue