linux/drivers/soc/xilinx
Gaosheng Cui 272168927f drivers: soc: xilinx: add the missing kfree in xlnx_add_cb_for_suspend()
[ Upstream commit 44ed4f90a9 ]

If we fail to allocate memory for cb_data by kmalloc, the memory
allocation for eve_data is never freed, add the missing kfree()
in the error handling path.

Fixes: 05e5ba40ea ("driver: soc: xilinx: Add support of multiple callbacks for same event in event management driver")
Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com>
Link: https://lore.kernel.org/r/20240706065155.452764-1-cuigaosheng1@huawei.com
Signed-off-by: Michal Simek <michal.simek@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-12-14 19:53:20 +01:00
..
Kconfig drivers: soc: xilinx: add xilinx event management driver 2021-12-03 16:08:46 +01:00
Makefile drivers: soc: xilinx: add xilinx event management driver 2021-12-03 16:08:46 +01:00
xlnx_event_manager.c drivers: soc: xilinx: add the missing kfree in xlnx_add_cb_for_suspend() 2024-12-14 19:53:20 +01:00
zynqmp_pm_domains.c soc: xilinx: add a to_zynqmp_pm_domain macro 2021-12-08 12:53:36 +01:00
zynqmp_power.c drivers: soc: xilinx: check return status of get_api_version() 2024-08-03 08:49:35 +02:00