]> 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)
commitad70bb8313d27b205232f1082772a719cb268dfe
treea90e60642e6658cc6fef630d2ee8bec39b1bcbee
parentfb091f65915cb24030c58e307b086a38069f54d5
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