X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;ds=inline;f=drivers%2Fnvdimm%2Fpfn_devs.c;h=71805a1aa0f3e5f002ee5d26339c53d49aadf951;hb=df3e6906d361e90bfbb3b3ef127bd2b4e667e2e9;hp=3fd7d0d81a470b4cff54b093b0c24c6d14c376b5;hpb=57e6bbcb4beb4c87aa93e78a1db08fdaab9ee65f;p=karo-tx-linux.git diff --git a/drivers/nvdimm/pfn_devs.c b/drivers/nvdimm/pfn_devs.c index 3fd7d0d81a47..71805a1aa0f3 100644 --- a/drivers/nvdimm/pfn_devs.c +++ b/drivers/nvdimm/pfn_devs.c @@ -148,13 +148,13 @@ static ssize_t namespace_store(struct device *dev, struct nd_pfn *nd_pfn = to_nd_pfn(dev); ssize_t rc; - nvdimm_bus_lock(dev); device_lock(dev); + nvdimm_bus_lock(dev); rc = nd_namespace_store(dev, &nd_pfn->ndns, buf, len); dev_dbg(dev, "%s: result: %zd wrote: %s%s", __func__, rc, buf, buf[len - 1] == '\n' ? "" : "\n"); - device_unlock(dev); nvdimm_bus_unlock(dev); + device_unlock(dev); return rc; }