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:
parent
e808190a59
commit
f3365f07a3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user