31f19a9beb
If the last part of the PCI address (function number) is missing,
the parsing was successful, assuming function 0.
The call to strtoul is not returning an error in such a case,
so an explicit check is inserted before.
This bug has always been there in older parsing macros:
- GET_PCIADDR_FIELD
- GET_BLACKLIST_FIELD
Fixes:
|
||
---|---|---|
.. | ||
Makefile | ||
meson.build | ||
rte_pci_version.map | ||
rte_pci.c | ||
rte_pci.h |