nvme_fc: Add check of status_code in ERSP_IU
Add check of status_code in ERSP_IU Signed-off-by: James Smart <james.smart@broadcom.com> Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Sagi Grimberg <sagi@grimberg.me> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
parent
0f222ccce3
commit
726a1080e5
|
@ -1226,6 +1226,7 @@ nvme_fc_fcpio_done(struct nvmefc_fcp_req *req)
|
|||
(freq->rcv_rsplen / 4) ||
|
||||
be32_to_cpu(op->rsp_iu.xfrd_len) !=
|
||||
freq->transferred_length ||
|
||||
op->rsp_iu.status_code ||
|
||||
op->rqno != le16_to_cpu(cqe->command_id))) {
|
||||
status = -EIO;
|
||||
goto done;
|
||||
|
|
Loading…
Reference in New Issue