nvme-rdma: fix error code in nvme_rdma_create_ctrl()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 14 Jun 2017 10:46:45 +0000 (13:46 +0300)
committerChristoph Hellwig <hch@lst.de>
Thu, 15 Jun 2017 12:30:28 +0000 (14:30 +0200)
commitbb472baa235045798ba39864948bc47d9dbd7487
tree5394d2fd31be76ff2bc15aab6a41fbf09eea62ab
parent97ddc36e4e993bba308aa3e3f58f6de9d5683e95
nvme-rdma: fix error code in nvme_rdma_create_ctrl()

We accidentally return ERR_PTR(0) which is NULL.  The caller isn't
explicitly checking for that but I couldn't immediately spot whether
this would lead to a NULL dereference.  Anyway, we can fix add an
error code easily enough.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/rdma.c