]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/hns: Add illegal hop_num judgement
authorLijun Ou <oulijun@huawei.com>
Wed, 25 Jul 2018 07:29:37 +0000 (15:29 +0800)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 26 Jul 2018 22:51:34 +0000 (16:51 -0600)
commit26f63b9c33ceda12fb9136a1d0c80e03c9ebb514
treea279d24079d1284700af5511cf9fbc066344a148
parentdedf63506a8e55235edf902fa7455cd2974e462d
RDMA/hns: Add illegal hop_num judgement

When hop_num is more than three, it need to return -EINVAL.  This patch
fixes it.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/hns/hns_roce_hem.c