]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/hns: Modify return value of restrack functions
authorLang Cheng <chenglang@huawei.com>
Wed, 4 Sep 2019 03:14:44 +0000 (11:14 +0800)
committerDoug Ledford <dledford@redhat.com>
Mon, 21 Oct 2019 19:29:38 +0000 (15:29 -0400)
commitcfd82da4e741c16d71a12123bf0cb585af2b8796
tree31c3d90ac649d9cb7e39e794ae284d0ad332b963
parent32883228b980ed0a3ea1d13230f90622f0047908
RDMA/hns: Modify return value of restrack functions

The restrack function return EINVAL instead of EMSGSIZE when the driver
operation fails.

Fixes: 4b42d05d0b2c ("RDMA/hns: Remove unnecessary kzalloc")
Signed-off-by: Lang Cheng <chenglang@huawei.com>
Signed-off-by: Weihang Li <liweihang@hisilicon.com>
Link: https://lore.kernel.org/r/1567566885-23088-5-git-send-email-liweihang@hisilicon.com
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_restrack.c