diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2019-05-03 16:20:04 +0300 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2019-05-03 16:20:58 +0300 |
commit | d00afd5ede1c29a6dc59be2d7fb7d6ef28eb85c5 (patch) | |
tree | e194b1968e54380a6654abf7d3a037ca0a010280 /drivers/nvme/target/core.c | |
parent | 9a51b86a61214a297cdfc1bb705b7267f9455ae6 (diff) | |
parent | d5984d2a312144bedccf32aea2298f8df05bb617 (diff) | |
download | linux-d00afd5ede1c29a6dc59be2d7fb7d6ef28eb85c5.tar.xz |
Merge branch 'i2c-mux/for-next' of https://github.com/peda-r/i2c-mux into i2c/for-5.2
Mainly some pca954x work, i.e. removal of unused platform data support
and added support for sysfs interface for manipulating/examining the
idle state. And then a mechanical cocci-style patch.
Diffstat (limited to 'drivers/nvme/target/core.c')
-rw-r--r-- | drivers/nvme/target/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nvme/target/core.c b/drivers/nvme/target/core.c index 2d73b66e3686..b3e765a95af8 100644 --- a/drivers/nvme/target/core.c +++ b/drivers/nvme/target/core.c @@ -509,7 +509,7 @@ int nvmet_ns_enable(struct nvmet_ns *ns) ret = nvmet_p2pmem_ns_enable(ns); if (ret) - goto out_unlock; + goto out_dev_disable; list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) nvmet_p2pmem_ns_add_p2p(ctrl, ns); @@ -550,7 +550,7 @@ out_unlock: out_dev_put: list_for_each_entry(ctrl, &subsys->ctrls, subsys_entry) pci_dev_put(radix_tree_delete(&ctrl->p2p_ns_map, ns->nsid)); - +out_dev_disable: nvmet_ns_dev_disable(ns); goto out_unlock; } |