]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/ocrdma: Fix error codes in ocrdma_create_srq()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 13 Jul 2017 07:46:49 +0000 (10:46 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 20 Jul 2017 15:20:49 +0000 (11:20 -0400)
commitfd60013a067d832d890e392a9b06c1223b58c56f
treef6881443a03d9731afaa8f78d69c5241dd7d76f3
parent417175400eeee1d9b30c58f7e79474242fb91376
RDMA/ocrdma: Fix error codes in ocrdma_create_srq()

If either of these allocations fail then we return ERR_PTR(0).  That's
equivalent to NULL and results in a NULL pointer dereference in the
caller.

Fixes: 4dd85134a783 ("RDMA/ocrdma: Add driver for Emulex OneConnect IBoE RDMA adapter")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/ocrdma/ocrdma_verbs.c