nvme-rdma: fix the return value of nvme_rdma_reinit_request()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 12 Jul 2016 11:06:17 +0000 (11:06 +0000)
committerJens Axboe <axboe@fb.com>
Tue, 12 Jul 2016 15:27:03 +0000 (08:27 -0700)
commit458a9632ad7428e16e1feafb61aca33a11ac2f46
tree485fa0491663dbcf92bb76d354547b9ab509da40
parentbf294e833b3e670450cdc013242d45a4d2b8d395
nvme-rdma: fix the return value of nvme_rdma_reinit_request()

PTR_ERR should be applied before its argument is reassigned, otherwise the
return value will be set to 0, not error code.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Reviewed-by: Jay Freyensee <james_p_freyensee@linux.intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/rdma.c
This page took 0.026058 seconds and 5 git commands to generate.