Thread (9 messages) 9 messages, 4 authors, 2021-08-19

Re: [PATCH -next] RDMA/hns: Fix return in hns_roce_rereg_user_mr()

From: Jason Gunthorpe <jgg@nvidia.com>
Date: 2021-08-19 14:18:44
Also in: lkml

On Wed, Aug 04, 2021 at 08:59:39PM +0800, YueHaibing wrote:
If re-registering an MR in hns_roce_rereg_user_mr(), we should
return NULL instead of pass 0 to ERR_PTR.

Fixes: 4e9fc1dae2a9 ("RDMA/hns: Optimize the MR registration process")
Signed-off-by: YueHaibing <redacted>
 drivers/infiniband/hw/hns/hns_roce_mr.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
Applied to for-next, though hns should be checked to ensure MRs are
not left in some broken state after rereg failure.

Thanks,
Jason
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help