From: James Smart Date: Fri, 24 Mar 2017 03:41:23 +0000 (-0700) Subject: nvme_fc: Add check of status_code in ERSP_IU X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=726a1080e537f7c0b4435ef29e17b056e09fc4f4;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git nvme_fc: Add check of status_code in ERSP_IU Add check of status_code in ERSP_IU Signed-off-by: James Smart Reviewed-by: Johannes Thumshirn Reviewed-by: Christoph Hellwig Signed-off-by: Sagi Grimberg Signed-off-by: Jens Axboe --- diff --git a/drivers/nvme/host/fc.c b/drivers/nvme/host/fc.c index af196cac5ebe..f55ef730472b 100644 --- a/drivers/nvme/host/fc.c +++ b/drivers/nvme/host/fc.c @@ -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;