Commit 726a1080 authored by James Smart's avatar James Smart Committed by Jens Axboe
Browse files

nvme_fc: Add check of status_code in ERSP_IU

Add check of status_code in ERSP_IU
Signed-off-by: default avatarJames Smart <>
Reviewed-by: default avatarJohannes Thumshirn <>
Reviewed-by: default avatarChristoph Hellwig <>
Signed-off-by: default avatarSagi Grimberg <>
Signed-off-by: default avatarJens Axboe <>
parent 0f222ccc
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment