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@unixarea.de>
X-MFC with:	r367349
This commit is contained in:
Vladimir Kondratyev 2020-12-05 10:55:14 +00:00
parent cc2eaa04bb
commit a5cc5fcef6

View File

@ -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))