Fix udev rules printing
The blacklisted devices weren't correctly checked for past the first item, as we weren't using the right index to get the product ID from the ID table.
This commit is contained in:
parent
f3dd55815e
commit
a6339a30ef
1 changed files with 1 additions and 1 deletions
|
@ -52,7 +52,7 @@ static void print_driver (struct fp_driver *driver)
|
||||||
blacklist = 0;
|
blacklist = 0;
|
||||||
for (j = 0; blacklist_id_table[j].vendor != 0; j++) {
|
for (j = 0; blacklist_id_table[j].vendor != 0; j++) {
|
||||||
if (driver->id_table[i].vendor == blacklist_id_table[j].vendor &&
|
if (driver->id_table[i].vendor == blacklist_id_table[j].vendor &&
|
||||||
driver->id_table[j].product == blacklist_id_table[j].product) {
|
driver->id_table[i].product == blacklist_id_table[j].product) {
|
||||||
blacklist = 1;
|
blacklist = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue