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

net: hns3: bd_num from fireware should not be zero



driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

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

The bd_num query from fireware maybe zero, use zero to alloc
buffer may cause override problem.

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 8b72ed60
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment