aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-memcpy.c
diff options
context:
space:
mode:
authorKonstantin Meskhidze <[email protected]>2023-08-17 19:59:45 +0800
committerDave Jiang <[email protected]>2023-08-17 09:34:02 -0700
commit85ae42c72142346645e63c33835da947dfa008b3 (patch)
treece7b5dda2c2224ba161b05ba5c38703b8e5bb8b0 /lib/test_fortify/write_overflow-memcpy.c
parentfeb72e9b20823419aaed57801018eeffc7be7e82 (diff)
nvdimm: Fix memleak of pmu attr_groups in unregister_nvdimm_pmu()
Memory pointed by 'nd_pmu->pmu.attr_groups' is allocated in function 'register_nvdimm_pmu' and is lost after 'kfree(nd_pmu)' call in function 'unregister_nvdimm_pmu'. Fixes: 0fab1ba6ad6b ("drivers/nvdimm: Add perf interface to expose nvdimm performance stats") Co-developed-by: Ivanov Mikhail <[email protected]> Signed-off-by: Konstantin Meskhidze <[email protected]> Reviewed-by: Jeff Moyer <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dave Jiang <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-memcpy.c')
0 files changed, 0 insertions, 0 deletions