[PATCH 6.1 364/600] nvdimm: Fix dereference after free in register_nvdimm_pmu()