summaryrefslogtreecommitdiff
path: root/arch/powerpc
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2021-07-30 19:46:04 +0300
committerDan Williams <dan.j.williams@intel.com>2021-08-11 21:54:43 +0300
commitd9cee9f85b22fab88d2b76d2e92b18e3d0e6aa8c (patch)
tree4bda6335e754bdc28f93cf90c17b4ab2584ac1e8 /arch/powerpc
parentb93dfa6bda4d4e88e5386490f2b277a26958f9d3 (diff)
downloadlinux-d9cee9f85b22fab88d2b76d2e92b18e3d0e6aa8c.tar.xz
libnvdimm/region: Fix label activation vs errors
There are a few scenarios where init_active_labels() can return without registering deactivate_labels() to run when the region is disabled. In particular label error injection creates scenarios where a DIMM is disabled, but labels on other DIMMs in the region become activated. Arrange for init_active_labels() to always register deactivate_labels(). Reported-by: Krzysztof Kensicki <krzysztof.kensicki@intel.com> Cc: <stable@vger.kernel.org> Fixes: bf9bccc14c05 ("libnvdimm: pmem label sets and namespace instantiation.") Reviewed-by: Jeff Moyer <jmoyer@redhat.com> Link: https://lore.kernel.org/r/162766356450.3223041.1183118139023841447.stgit@dwillia2-desk3.amr.corp.intel.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'arch/powerpc')
0 files changed, 0 insertions, 0 deletions