diff options
| author | Fuyun Liang <liangfuyun1@huawei.com> | 2017-11-08 15:52:22 +0800 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2017-11-11 15:17:56 +0900 |
| commit | 39e2151f1012eb4163b3a9f414c27d92798e4cbe (patch) | |
| tree | 515b0100c549ee8212212f77924bac2673f5d459 /tools/perf/scripts/python | |
| parent | net: netlink: Update attr validation to require exact length for some types (diff) | |
| download | linux-39e2151f1012eb4163b3a9f414c27d92798e4cbe.tar.gz linux-39e2151f1012eb4163b3a9f414c27d92798e4cbe.zip | |
net: hns3: fix a bug when getting phy address from NCL_config file
Driver gets phy address from NCL_config file and uses the phy address
to initialize phydev. There are 5 bits for phy address. And C22 phy
address has 5 bits. So 0-31 are all valid address for phy. If there
is no phy, it will crash. Because driver always get a valid phy address.
This patch fixes the phy address to 8 bits, and use 0xff to indicate
invalid phy address.
Fixes: 46a3df9f9718 (net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support)
Signed-off-by: Fuyun Liang <liangfuyun1@huawei.com>
Signed-off-by: Lipeng <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
