Skip to contentSkip to conversation

nvme_fc: Add check of status_code in ERSP_IU

PATCH New James Smart 2 participants 2 messages Dec 24, 2016 – Jan 9, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 2/3 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 at broadcom.com>
---
 drivers/nvme/host/fc.c | 1 +
 1 file changed, 1 insertion(+)
drivers/nvme/host/fc.c +1 -0
index 827c2b5..03bb599 100644
@@ -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;
Signature · 1 line
2.5.0
#1 lore raw

PATCH 2/3 nvme_fc: Add check of status_code in ERSP_IU

Quoted 5 lines · James Smart

Add check of status_code in ERSP_IU

Signed-off-by James Smart <james.smart at broadcom.com>

---

Looks good,
Reviewed-by: Johannes Thumshirn <jthumshirn at suse.de>

Signature · 6 lines
Johannes Thumshirn                                          Storage
jthumshirn at suse.de                                +49 911 74053 689
SUSE LINUX GmbH, Maxfeldstr. 5, 90409 N?rnberg
GF: Felix Imend?rffer, Jane Smithard, Graham Norton
HRB 21284 (AG N?rnberg)
Key fingerprint = EC38 9CAB C2C4 F25D 8600 D0D0 0393 969D 2D76 0850