Commit 44ed4f90 authored by Gaosheng Cui's avatar Gaosheng Cui Committed by Michal Simek
Browse files

drivers: soc: xilinx: add the missing kfree in xlnx_add_cb_for_suspend()



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: 05e5ba40 ("driver: soc: xilinx: Add support of multiple callbacks for same event in event management driver")
Signed-off-by: default avatarGaosheng Cui <cuigaosheng1@huawei.com>
Link: https://lore.kernel.org/r/20240706065155.452764-1-cuigaosheng1@huawei.com


Signed-off-by: default avatarMichal Simek <michal.simek@amd.com>
parent 9852d85e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment