Commit f8a1be5b authored by Yonglong Liu's avatar Yonglong Liu Committed by Yang Yingliang
Browse files

net: hns3: fix local variable "desc" not initialized problem



driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

----------------------------

In hclge_mac_update_stats_defective(), the local variable "desc"
is not initialized, if the mac statistics returned from firmware
is less then the size of desc, will cause the rest mac statistics
are random.

Signed-off-by: default avatarYonglong Liu <liuyonglong@huawei.com>
Reviewed-by: default avatarli yongxin <liyongxin1@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent cea3fc04
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment