net: hns3: fix memory override when bd_num is bigger than the ring size
driver inclusion category: bugfix bugzilla: NA CVE: NA ---------------------------- The bd_num is from firmware, it may be bigger than the ring size, and may cause memory override problem. Signed-off-by: NYonglong Liu <liuyonglong@huawei.com> Reviewed-by: NJunxin Chen <chenjunxin1@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录