aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/cppc_acpi.c
diff options
context:
space:
mode:
authorMiaoqian Lin <[email protected]>2022-12-29 05:48:24 +0000
committerBorislav Petkov (AMD) <[email protected]>2023-01-03 16:03:57 +0000
commite7a293658c20a7945014570e1921bf7d25d68a36 (patch)
tree6a004f463f0e543b280d8aad007bcc11a18c9bbf /drivers/acpi/cppc_acpi.c
parentEDAC/device: Fix period calculation in edac_device_reset_delay_period() (diff)
downloadkernel-e7a293658c20a7945014570e1921bf7d25d68a36.tar.gz
kernel-e7a293658c20a7945014570e1921bf7d25d68a36.zip
EDAC/highbank: Fix memory leak in highbank_mc_probe()
When devres_open_group() fails, it returns -ENOMEM without freeing memory allocated by edac_mc_alloc(). Call edac_mc_free() on the error handling path to avoid a memory leak. [ bp: Massage commit message. ] Fixes: a1b01edb2745 ("edac: add support for Calxeda highbank memory controller") Signed-off-by: Miaoqian Lin <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Andre Przywara <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/acpi/cppc_acpi.c')
0 files changed, 0 insertions, 0 deletions