mirror of
https://github.com/opnsense/src.git
synced 2026-06-10 17:22:46 -04:00
Change -1 to 0xfffffffful since the interface returns uint32_t.
This commit is contained in:
parent
ae438af62d
commit
e33abcc50c
1 changed files with 1 additions and 1 deletions
|
|
@ -432,7 +432,7 @@ pci_read_device(device_t pcib, int d, int b, int s, int f, size_t size)
|
|||
|
||||
devlist_entry = NULL;
|
||||
|
||||
if (REG(PCIR_DEVVENDOR, 4) != -1) {
|
||||
if (REG(PCIR_DEVVENDOR, 4) != 0xfffffffful) {
|
||||
devlist_entry = malloc(size, M_DEVBUF, M_WAITOK | M_ZERO);
|
||||
if (devlist_entry == NULL)
|
||||
return (NULL);
|
||||
|
|
|
|||
Loading…
Reference in a new issue