net/hinic: Fix out-of-bounds access when setting ets
driver inclusion category: bugfix bugzilla: 4472 ----------------------------------------------------------------------- When the user mode tool sets ETS, the input value tc id exceeds the maximum value of 7, which will cause the array to be accessed out of bounds. Driver check the legality of tc id. Signed-off-by: NChiqijun <chiqijun@huawei.com> Reviewed-by: NZengweiliang <zengweiliang.zengweiliang@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录