]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
RDMA/hns: Return actual error code instead of fixed EINVAL
authorJunxian Huang <huangjunxian6@hisilicon.com>
Sun, 4 Jan 2026 06:40:55 +0000 (14:40 +0800)
committerLeon Romanovsky <leon@kernel.org>
Sun, 4 Jan 2026 15:09:51 +0000 (10:09 -0500)
commit8cda8acbb1f8c6c0fec45b7166bb558b5af59da8
treeda495233a34e3d7e53086ebefbb2b4014dfed078
parentc0a26bbd3f99b7b03f072e3409aff4e6ec8af6f6
RDMA/hns: Return actual error code instead of fixed EINVAL

query_cqc() and query_mpt() may return various error codes in
different cases. Return actual error code instead of fixed EINVAL.

Fixes: f2b070f36d1b ("RDMA/hns: Support CQ's restrack raw ops for hns driver")
Fixes: 3d67e7e236ad ("RDMA/hns: Support MR's restrack raw ops for hns driver")
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Link: https://patch.msgid.link/20260104064057.1582216-3-huangjunxian6@hisilicon.com
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/hns/hns_roce_restrack.c