aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2017-07-13 10:46:14 +0300
committerDoug Ledford <dledford@redhat.com>2017-07-20 11:20:49 -0400
commitdd75cfa6d3216c79c695f5af13e52208afe374ad (patch)
tree1c00d9c1cf14071a97120ec7a5538ac551ba1cb3 /drivers/md
parentIB/cxgb3: Fix error codes in iwch_alloc_mr() (diff)
downloadlinux-dev-dd75cfa6d3216c79c695f5af13e52208afe374ad.tar.xz
linux-dev-dd75cfa6d3216c79c695f5af13e52208afe374ad.zip
RDMA/ocrdma: Fix an error code in ocrdma_alloc_pd()
We should preserve the original "status" error code instead of resetting it to zero. Returning ERR_PTR(0) is the same as NULL and results in a NULL dereference in the callers. I added a printk() on error instead. Fixes: 45e86b33ec8b ("RDMA/ocrdma: Cache recv DB until QP moved to RTR") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/md')
0 files changed, 0 insertions, 0 deletions