svn commit: r368365 - head/sys/dev/atkbdc

Vladimir Kondratyev wulf at FreeBSD.org
Sat Dec 5 10:55:18 UTC 2020


Author: wulf
Date: Sat Dec  5 10:55:14 2020
New Revision: 368365
URL: https://svnweb.freebsd.org/changeset/base/368365

Log:
  atkbd(4): Change quirk table end-of-list marker to NULL vendor/maker/product
  
  This fixes regression introduced in r367349 which effectively resulted in
  truncation of quirk table.
  
  PR:		250711
  Submitted by:	grembo
  Reported by:	Matthias Apitz <guru at unixarea.de>
  X-MFC with:	r367349

Modified:
  head/sys/dev/atkbdc/atkbdc.c

Modified: head/sys/dev/atkbdc/atkbdc.c
==============================================================================
--- head/sys/dev/atkbdc/atkbdc.c	Sat Dec  5 10:55:09 2020	(r368364)
+++ head/sys/dev/atkbdc/atkbdc.c	Sat Dec  5 10:55:14 2020	(r368365)
@@ -133,7 +133,8 @@ atkbdc_getquirks(void)
     char* maker = kern_getenv("smbios.system.maker");
     char* product = kern_getenv("smbios.system.product");
 
-    for (i=0; quirks[i].quirk != 0; ++i)
+    for (i=0; quirks[i].bios_vendor != NULL || quirks[i].maker != NULL ||
+	quirks[i].product != NULL; ++i)
 	if (QUIRK_STR_MATCH(quirks[i].bios_vendor, bios_vendor) &&
 	    QUIRK_STR_MATCH(quirks[i].maker, maker) &&
 	    QUIRK_STR_MATCH(quirks[i].product, product))


More information about the svn-src-all mailing list