bus = colon2;
if (str[0] && strcmp(str, "*"))
{
- long int x = strtol(bus, &e, 16);
+ long int x = strtol(str, &e, 16);
if ((e && *e) || (x < 0 || x > 0xffff))
return "Invalid domain number";
f->domain = x;
if (str[0] && strcmp(str, "*"))
{
long int x = strtol(str, &e, 16);
- if ((e && *e) || (x < 0 || x >= 0xffff))
+ if ((e && *e) || (x < 0 || x > 0xffff))
return "Invalid vendor ID";
f->vendor = x;
}
if (s[0] && strcmp(s, "*"))
{
long int x = strtol(s, &e, 16);
- if ((e && *e) || (x < 0 || x >= 0xffff))
+ if ((e && *e) || (x < 0 || x > 0xffff))
return "Invalid device ID";
f->device = x;
}
return 0;
if (f->device >= 0 || f->vendor >= 0)
{
- pci_fill_info(d, PCI_FILL_IDENT);
+ pci_fill_info_v32(d, PCI_FILL_IDENT);
if ((f->device >= 0 && f->device != d->device_id) ||
(f->vendor >= 0 && f->vendor != d->vendor_id))
return 0;