]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: modify the upper limit judgment condition
authorliuzhongzhu <liuzhongzhu@huawei.com>
Sat, 2 Feb 2019 14:39:36 +0000 (22:39 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Feb 2019 16:24:09 +0000 (08:24 -0800)
commitd8de6af06ccfe7339c4c20ee5a00bf5225917f18
treee076b6565e98e236a78be4564193df305ad0dcf3
parent193b76d65fe69bbd3dd609be137b190162b89b5a
net: hns3: modify the upper limit judgment condition

In order to prevent the variable anomaly from being larger than desc_num,
the upper limit judgment condition becomes >=.

Signed-off-by: liuzhongzhu <liuzhongzhu@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_cmd.c