Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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 <james.smart@broadcom.com>
Reviewed-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarSagi Grimberg <sagi@grimberg.me>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 0f222ccc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;