[PATCH] nvme-rdma: fix error code in nvme_rdma_create_ctrl()
Christoph Hellwig
hch at infradead.org
Thu Jun 15 05:21:08 PDT 2017
On Wed, Jun 14, 2017 at 01:46:45PM +0300, Dan Carpenter wrote:
> 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 at oracle.com>
Thanks Dan,
applied to nvme-4.13.
More information about the Linux-nvme
mailing list