Check that the address is specified in mlx5tool(8).

Submitted by:	kib@
MFC after:	1 week
Sponsored by:	Mellanox Technologies
This commit is contained in:
hselasky 2018-03-08 15:28:13 +00:00
parent d1efa6e93f
commit b69f17c450

View File

@ -47,6 +47,10 @@ parse_pci_addr(const char *addrstr, struct mlx5_fwdump_addr *addr)
unsigned long selarr[4];
int i;
if (addrstr == NULL) {
warnx("no pci address specified");
return (1);
}
if (strncmp(addrstr, "pci", 3) == 0) {
addrstr += 3;
i = 0;