summaryrefslogtreecommitdiffstats
path: root/drivers/nvme/host/multipath.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@kernel.org>2018-10-02 09:43:39 +0200
committerIngo Molnar <mingo@kernel.org>2018-10-02 09:43:39 +0200
commitb429f71bca5a4ddd914350a39572692e2ea211e0 (patch)
tree50cee6fb7b114ad89c778de87bcb44972b7326f5 /drivers/nvme/host/multipath.c
parentace8031099f91480799b5929b4cccf2dcacc5136 (diff)
parent6fd98e775f24fd41520928d345f5db3ff52bb35d (diff)
downloadblackbird-obmc-linux-b429f71bca5a4ddd914350a39572692e2ea211e0.tar.gz
blackbird-obmc-linux-b429f71bca5a4ddd914350a39572692e2ea211e0.zip
Merge branch 'sched/urgent' into sched/core, to pick up fixes
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'drivers/nvme/host/multipath.c')
-rw-r--r--drivers/nvme/host/multipath.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/nvme/host/multipath.c b/drivers/nvme/host/multipath.c
index 5a9562881d4e..9fe3fff818b8 100644
--- a/drivers/nvme/host/multipath.c
+++ b/drivers/nvme/host/multipath.c
@@ -537,8 +537,10 @@ int nvme_mpath_init(struct nvme_ctrl *ctrl, struct nvme_id_ctrl *id)
INIT_WORK(&ctrl->ana_work, nvme_ana_work);
ctrl->ana_log_buf = kmalloc(ctrl->ana_log_size, GFP_KERNEL);
- if (!ctrl->ana_log_buf)
+ if (!ctrl->ana_log_buf) {
+ error = -ENOMEM;
goto out;
+ }
error = nvme_read_ana_log(ctrl, true);
if (error)
@@ -547,7 +549,7 @@ int nvme_mpath_init(struct nvme_ctrl *ctrl, struct nvme_id_ctrl *id)
out_free_ana_log_buf:
kfree(ctrl->ana_log_buf);
out:
- return -ENOMEM;
+ return error;
}
void nvme_mpath_uninit(struct nvme_ctrl *ctrl)
OpenPOWER on IntegriCloud