Dan Carpenter 9064d6055c 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>
2017-07-20 11:20:49 -04:00
..
2017-04-20 16:13:20 -04:00
2017-04-20 16:13:20 -04:00
2010-11-01 15:38:34 -04:00
2017-04-20 16:13:20 -04:00
2017-04-20 16:13:20 -04:00
2017-04-20 16:13:20 -04:00
2017-04-20 16:13:20 -04:00
2017-04-20 16:13:20 -04:00
2013-02-27 19:10:16 -08:00
2011-08-10 19:54:52 -07:00