diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index fd206a6adad591f6b75de41e9d79c0e46a347cc0..2c4cf65641a6b12d7706ae1214f64d1f6c3bc15f 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -2316,7 +2316,7 @@ int nvme_init_identify(struct nvme_ctrl *ctrl) if (id->lpa & NVME_CTRL_LPA_CMD_EFFECTS_LOG) { ret = nvme_get_effects_log(ctrl); if (ret < 0) - return ret; + goto out_free; } if (!ctrl->identified) {