]> git.baikalelectronics.ru Git - kernel.git/commit
libnvdimm, pfn: fix uuid validation
authorDan Williams <dan.j.williams@intel.com>
Fri, 8 Apr 2016 02:59:27 +0000 (19:59 -0700)
committerDan Williams <dan.j.williams@intel.com>
Fri, 8 Apr 2016 02:59:27 +0000 (19:59 -0700)
commit3a01c96453d200fd73411ec3856a6901aa636c91
treea90e60642e6658cc6fef630d2ee8bec39b1bcbee
parent8cae3fa4c1e7deefcf14d813a65aa7cfadb5b58f
libnvdimm, pfn: fix uuid validation

If we detect a namespace has a stale info block in the init path, we
should overwrite with the latest configuration.  In fact, we already
return -ENODEV when the parent uuid is invalid, the same should be done
for the 'self' uuid.  Otherwise we can get into a condition where
userspace is unable to reconfigure the pfn-device without directly /
manually invalidating the info block.

Cc: <stable@vger.kernel.org>
Reported-by: Jeff Moyer <jmoyer@redhat.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/pfn_devs.c