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

net: hns3: limit bd numbers when getting dfx regs.



driver inclusion
category: bugfix
bugzilla: NA
CVE: NA

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

When getting dfx regs, the bd numbers from the firmware may be
very big which is not expected, and cause the buffer size
overflow. This patch limit the max bd numbers to 64 to fix the
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 ca5221f5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment