mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=330654
|
@ -47,6 +47,10 @@ parse_pci_addr(const char *addrstr, struct mlx5_fwdump_addr *addr)
|
||||||
unsigned long selarr[4];
|
unsigned long selarr[4];
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
if (addrstr == NULL) {
|
||||||
|
warnx("no pci address specified");
|
||||||
|
return (1);
|
||||||
|
}
|
||||||
if (strncmp(addrstr, "pci", 3) == 0) {
|
if (strncmp(addrstr, "pci", 3) == 0) {
|
||||||
addrstr += 3;
|
addrstr += 3;
|
||||||
i = 0;
|
i = 0;
|
||||||
|
|
Loading…
Reference in a new issue