[PATCH net-next 3/9] net: hns3: Fixes the out of bounds access in hclge_map_tqp

2018-05-01 Thread Salil Mehta
From: Huazhong Tan This patch fixes the handling of the check when number of vports are detected to be more than available TPQs. Current handling causes an out of bounds access in hclge_map_tqp(). Fixes: 7df7dad633e2 ("net: hns3: Refactor the mapping of tqp to vport")

[PATCH net-next 3/9] net: hns3: Fixes the out of bounds access in hclge_map_tqp

2018-05-01 Thread Salil Mehta
From: Huazhong Tan This patch fixes the handling of the check when number of vports are detected to be more than available TPQs. Current handling causes an out of bounds access in hclge_map_tqp(). Fixes: 7df7dad633e2 ("net: hns3: Refactor the mapping of tqp to vport") Signed-off-by: Huazhong