Commit dbd2f3b
net: hns3: fix variable may not initialized problem in hns3_init_mac_addr()
When a VF is calling hns3_init_mac_addr(), get_mac_addr() may
return fail, then the value of mac_addr_temp is not initialized.
Fixes: 76ad4f0 ("net: hns3: Add support of HNS3 Ethernet Driver for hip08 SoC")
Signed-off-by: Yonglong Liu <liuyonglong@huawei.com>
Signed-off-by: Jijie Shao <shaojijie@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>1 parent 53aba45 commit dbd2f3b
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5139 | 5139 | | |
5140 | 5140 | | |
5141 | 5141 | | |
5142 | | - | |
| 5142 | + | |
5143 | 5143 | | |
5144 | 5144 | | |
5145 | 5145 | | |
| |||
0 commit comments