net: hns3: fix variable may not initialized problem in hns3_init_mac_addr()
maillist inclusion category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8GVK7 CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=dbd2f3b20c6ae425665b6975d766e3653d453e73 ---------------------------------------------------------------------- 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: 76ad4f0e ("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> Signed-off-by:
Jiantao Xiao <xiaojiantao1@h-partners.com>
Loading
Please sign in to comment