aboutsummaryrefslogtreecommitdiff
path: root/drivers/thunderbolt/dma_port.h
diff options
context:
space:
mode:
authorGaosheng Cui2022-11-29 09:01:46 +0800
committerGreg Kroah-Hartman2023-03-11 13:55:16 +0100
commitd35290addcbac94b076babe0a798a8c043421812 (patch)
treeaf3bb207f3cd70d8dd25223f747e94843dfbf851 /drivers/thunderbolt/dma_port.h
parent1f4a325933f81bc52d484bb77e3cb415b0272921 (diff)
driver: soc: xilinx: fix memory leak in xlnx_add_cb_for_notify_event()
[ Upstream commit 1bea534991b9b35c41848a397666ada436456beb ] The kfree() should be called when memory fails to be allocated for cb_data in xlnx_add_cb_for_notify_event(), otherwise there will be a memory leak, so add kfree() to fix it. Fixes: 05e5ba40ea7a ("driver: soc: xilinx: Add support of multiple callbacks for same event in event management driver") Signed-off-by: Gaosheng Cui <cuigaosheng1@huawei.com> Acked-by: Michal Simek <michal.simek@amd.com> Link: https://lore.kernel.org/r/20221129010146.1026685-1-cuigaosheng1@huawei.com Signed-off-by: Michal Simek <michal.simek@amd.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/thunderbolt/dma_port.h')
0 files changed, 0 insertions, 0 deletions