linux/drivers/infiniband
Dan Carpenter dd75cfa6d3 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: 45e86b33ec ("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>
2017-07-20 11:20:49 -04:00
..
core IB/core: Allow QP state transition from reset to error 2017-07-17 21:21:30 -04:00
hw RDMA/ocrdma: Fix an error code in ocrdma_alloc_pd() 2017-07-20 11:20:49 -04:00
sw IB/rxe: Set dma_mask and coherent_dma_mask 2017-07-17 21:21:27 -04:00
ulp IB/IPoIB: Fix error code in ipoib_add_port() 2017-07-20 11:20:49 -04:00
Kconfig IB/opa-vnic: Virtual Network Interface Controller (VNIC) netdev 2017-04-20 12:01:38 -04:00
Makefile IB/rdmavt: Create module framework and handle driver registration 2016-03-10 20:37:04 -05:00