diff options
| author | YueHaibing <yuehaibing@huawei.com> | 2021-08-04 15:59:39 +0300 |
|---|---|---|
| committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-08-19 17:12:04 +0300 |
| commit | c4c7d7a43246a42b0355692c3ed53dff7cbb29bb (patch) | |
| tree | 5149e2a6da4ba0f763aaa77c9b32d62721856758 /drivers/usb/cdns3/cdns3-debug.h | |
| parent | d2b10794fc1312f856d67d0a6454aaa3ae96c595 (diff) | |
| download | linux-c4c7d7a43246a42b0355692c3ed53dff7cbb29bb.tar.xz | |
RDMA/hns: Fix return in hns_roce_rereg_user_mr()
If re-registering an MR in hns_roce_rereg_user_mr(), we should return NULL
instead of passing 0 to ERR_PTR for clarity.
Fixes: 4e9fc1dae2a9 ("RDMA/hns: Optimize the MR registration process")
Link: https://lore.kernel.org/r/20210804125939.20516-1-yuehaibing@huawei.com
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions
