numam-dpdk/lib/librte_pci
Thomas Monjalon 31f19a9beb pci: fix parsing of address without function number
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: af75078fec ("first public release")
Cc: stable@dpdk.org

Reported-by: Wisam Jaddo <wisamm@mellanox.com>
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Gaetan Rivet <gaetan.rivet@6wind.com>
2018-11-13 17:59:42 +01:00
..
Makefile use SPDX tag for 6WIND copyrighted files 2018-05-25 10:47:06 +02:00
meson.build build: replace license text with SPDX tag 2018-01-30 21:58:59 +01:00
rte_pci_version.map pci: remove duplicated symbol from map file 2018-03-22 17:34:48 +01:00
rte_pci.c pci: fix parsing of address without function number 2018-11-13 17:59:42 +01:00
rte_pci.h pci: use SPDX tags in 6WIND copyrighted files 2018-02-01 02:32:52 +01:00