]> git.karo-electronics.de Git - linux-beck.git/commit
libnvdimm, namespace: fix pmem namespace leak, delete when size set to zero
authorDan Williams <dan.j.williams@intel.com>
Tue, 10 Jan 2017 01:30:49 +0000 (17:30 -0800)
committerDan Williams <dan.j.williams@intel.com>
Fri, 13 Jan 2017 17:50:33 +0000 (09:50 -0800)
commit1f19b983a8877f81763fab3e693c6befe212736d
tree50ee1df98f5c1beb59f922c7d0cb76833b4956d7
parentd47d1d27fd6206c18806440f6ebddf51a806be4f
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>
drivers/nvdimm/namespace_devs.c