nvme-rdma: fix an error code
Subsystems (2)
PATCH 1/1 nvme-rdma: fix an error code
We accidentally return success when an error code was intended.
Fixes 711023071960 ('nvme-rdma: add a NVMe over Fabrics RDMA host driver')
Signed-off-by Dan Carpenter <[email protected]>
drivers/nvme/host/rdma.c +1 -1
@@ -299,8 +299,8 @@ static int nvme_rdma_reinit_request(void *data, struct request *rq) req->mr =ib_alloc_mr (dev->pd,IB_MR_TYPE_MEM_REG , ctrl->max_fr_pages);if (IS_ERR (req->mr)) { - req->mr =NULL ; ret =PTR_ERR (req->mr); + req->mr =NULL ; } req->need_inval = false;
Quoted 4 lines · Dan Carpenter
We accidentally return success when an error code was intended.
Fixes 711023071960 ('nvme-rdma: add a NVMe over Fabrics RDMA host driver')Signed-off-by Dan Carpenter <[email protected]>
This is already fixed, what branch are you looking at?
commit 458a9632ad7428e16e1feafb61aca33a11ac2f46
Author: Wei Yongjun <[email protected]> Date: Tue Jul 12 11:06:17 2016 +0000
nvme-rdma: fix the return value of nvme_rdma_reinit_request()
Signature · 1 line
Jens Axboe
Quoted 8 lines · Jens Axboe
Quoted 4 lines · Dan Carpenter
We accidentally return success when an error code was intended.
Fixes 711023071960 ('nvme-rdma: add a NVMe over Fabrics RDMA host driver')Signed-off-by Dan Carpenter <[email protected]>This is already fixed, what branch are you looking at?
Thanks.
Linux-next, but I wait a day before sending them out so I can review them the next day. So yesterday's linux-next, I guess.
regards,
dan carpenter