summaryrefslogtreecommitdiff
path: root/fs/proc
diff options
context:
space:
mode:
authorKonstantin Meskhidze <konstantin.meskhidze@huawei.com>2023-08-17 14:41:03 +0300
committerDave Jiang <dave.jiang@intel.com>2023-08-17 19:34:03 +0300
commit08ca6906a4b7e48f8e93b7c1f49a742a415be6d5 (patch)
treeb7597ea1edeb33c25ddb8764cec9f40f7ae210c6 /fs/proc
parent85ae42c72142346645e63c33835da947dfa008b3 (diff)
downloadlinux-08ca6906a4b7e48f8e93b7c1f49a742a415be6d5.tar.xz
nvdimm: Fix dereference after free in register_nvdimm_pmu()
'nd_pmu->pmu.attr_groups' is dereferenced in function 'nvdimm_pmu_free_hotplug_memory' call after it has been freed. Because in function 'nvdimm_pmu_free_hotplug_memory' memory pointed by the fields of 'nd_pmu->pmu.attr_groups' is deallocated it is necessary to call 'kfree' after 'nvdimm_pmu_free_hotplug_memory'. Fixes: 0fab1ba6ad6b ("drivers/nvdimm: Add perf interface to expose nvdimm performance stats") Co-developed-by: Ivanov Mikhail <ivanov.mikhail1@huawei-partners.com> Signed-off-by: Konstantin Meskhidze <konstantin.meskhidze@huawei.com> Reviewed-by: Jeff Moyer <jmoyer@redhat.com> Link: https://lore.kernel.org/r/20230817114103.754977-1-konstantin.meskhidze@huawei.com Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'fs/proc')
0 files changed, 0 insertions, 0 deletions