From: Keith Busch Date: Thu, 12 Apr 2018 15:16:14 +0000 (-0600) Subject: nvme: Use admin command effects for admin commands X-Git-Tag: v4.19~1200^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=62843c2e4226057c83f520c74fe9c81a1891c331;p=platform%2Fkernel%2Flinux-rpi3.git nvme: Use admin command effects for admin commands Signed-off-by: Keith Busch Signed-off-by: Jens Axboe --- diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index b09940c..aac3c1d 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -1102,7 +1102,7 @@ static u32 nvme_passthru_start(struct nvme_ctrl *ctrl, struct nvme_ns *ns, } if (ctrl->effects) - effects = le32_to_cpu(ctrl->effects->iocs[opcode]); + effects = le32_to_cpu(ctrl->effects->acs[opcode]); else effects = nvme_known_admin_effects(opcode);