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:
Hans Petter Selasky 2018-03-08 15:28:13 +00:00
parent e808190a59
commit f3365f07a3
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=330654

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;