diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2017-07-13 10:48:00 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2017-07-20 11:20:49 -0400 |
commit | 9064d6055c14f700aa13f7c72fd3e63d12bee643 (patch) | |
tree | b638689f886be6aa1cd4652f9f0d5c13f3c007f0 /drivers/infiniband/hw/ocrdma | |
parent | 6ebedacbb44602d4dec3348dee5ec31dd9b09521 (diff) |
IB/cxgb3: Fix error codes in iwch_alloc_mr()
We accidentally don't set the error code on some error paths. It means
return ERR_PTR(0) which is NULL and results in a NULL dereference in the
caller.
Fixes: 13a239330abd ("RDMA/cxgb3: Don't ignore insert_handle() failures")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/ocrdma')
0 files changed, 0 insertions, 0 deletions