aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/tcp_output.c
diff options
context:
space:
mode:
authorJian Shen <[email protected]>2018-09-21 15:41:40 +0000
committerDavid S. Miller <[email protected]>2018-09-22 02:29:32 +0000
commitb4f1d30327c831c4582a4e4672a06162ddfd3854 (patch)
treeea8f999cafa3871627eaf9531a3125b092007217 /net/ipv4/tcp_output.c
parentnet: hns3: Adjust prefix of tx/rx statistic names (diff)
downloadkernel-b4f1d30327c831c4582a4e4672a06162ddfd3854.tar.gz
kernel-b4f1d30327c831c4582a4e4672a06162ddfd3854.zip
net: hns3: Fix tqp array traversal condition for vf
There are two tqp_num variables "hdev->tqp_num" and "kinfo->tqp_num" used in VF. "hdev->tqp_num" is the total tqp number allocated to the VF, and "kinfo->tqp_num" indicates the tqp number being used by the VF. Usually the two variables are equal. But for the case hdev->tqp_num larger than rss_size_max, and num_tc is 1, "kinfo->tqp_num" will be less than "hdev->tqp_num". In original codes, "hdev->tqp_num" is always used to traverse the tqp array of kinfo. It may cause null pointer error when "hdev->tqp_num" is larger than "kinfo->tqp_num" Fixes: e2cb1dec9779 ("net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support") Signed-off-by: Jian Shen <[email protected]> Signed-off-by: Peng Li <[email protected]> Signed-off-by: Salil Mehta <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions