]> git.karo-electronics.de Git - linux-beck.git/commit
nvmet-rdma: Fix REJ status code
authorBart Van Assche <bart.vanassche@sandisk.com>
Tue, 18 Oct 2016 19:59:47 +0000 (12:59 -0700)
committerSagi Grimberg <sagi@grimberg.me>
Tue, 6 Dec 2016 08:17:03 +0000 (10:17 +0200)
commit70d4281c4b7049794e6d66baac7a18ad943cf726
tree3d661603c512ec30a36ff3df5704031be0e6c991
parente88f72cb9f54f6d244e55f629fe5e2f34ca6f9ed
nvmet-rdma: Fix REJ status code

nvmet_sq_init() returns a value <= 0. nvmet_rdma_cm_reject() expects
a second argument that is a NVME_RDMA_CM_* constant. Hence this patch.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Reviewed-by: Sagi Grimberg <sagi@grimbeg.me>
Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
drivers/nvme/target/rdma.c