tle>
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2017-01-09 17:30:49 -0800
committerDan Williams <dan.j.williams@intel.com>2017-01-13 09:50:33 -0800
commit1f19b983a8877f81763fab3e693c6befe212736d (patch)
tree50ee1df98f5c1beb59f922c7d0cb76833b4956d7
parentd47d1d27fd6206c18806440f6ebddf51a806be4f (diff)
libnvdimm, namespace: fix pmem namespace leak, delete when size set to zero
Commit 98a29c39dc68 ("libnvdimm, namespace: allow creation of multiple pmem-namespaces per region") added support for establishing additional pmem namespace beyond the seed device, similar to blk namespaces. However, it neglected to delete the namespace when the size is set to zero. Fixes: 98a29c39dc68 ("libnvdimm, namespace: allow creation of multiple pmem-namespaces per region") Cc: <stable@vger.kernel.org> Signed-off-by: Dan Williams <dan.j.williams@intel.com>