commit | 9064d6055c14f700aa13f7c72fd3e63d12bee643 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Thu Jul 13 10:48:00 2017 +0300 |
committer | Doug Ledford <dledford@redhat.com> | Thu Jul 20 11:20:49 2017 -0400 |
tree | b638689f886be6aa1cd4652f9f0d5c13f3c007f0 | |
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>