diff options
| author | Mark Johnston <markj@FreeBSD.org> | 2018-07-14 16:06:53 +0000 |
|---|---|---|
| committer | Mark Johnston <markj@FreeBSD.org> | 2018-07-14 16:06:53 +0000 |
| commit | f6982511f867bdcfcf85e25d6a2c8950f880e723 (patch) | |
| tree | 04b759ad5fec9d1b5c9129342a83567cacb65cc6 /sys/dev/vnic | |
| parent | 9c9c01e43bd54b651ff83d08603f40a4b188573a (diff) | |
Notes
Diffstat (limited to 'sys/dev/vnic')
| -rw-r--r-- | sys/dev/vnic/thunder_bgx_fdt.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/vnic/thunder_bgx_fdt.c b/sys/dev/vnic/thunder_bgx_fdt.c index 86ca4d1a4f1f..a295c18d73bd 100644 --- a/sys/dev/vnic/thunder_bgx_fdt.c +++ b/sys/dev/vnic/thunder_bgx_fdt.c @@ -193,7 +193,8 @@ bgx_fdt_phy_name_match(struct bgx *bgx, char *phy_name, ssize_t size) if (sz > size) return (FALSE); - if (strncmp(phy_name, type, sz) == 0) + if (strncmp(phy_name, type, sz - 1) == 0 && + (phy_name[sz - 1] == '\0' || phy_name[sz - 1] == '@')) return (TRUE); return (FALSE); |
