[PATCH] ASoC: meson: fix memory leak of links if allocation of ldata fails

patchwork-bot+linux-amlogic at kernel.org patchwork-bot+linux-amlogic at kernel.org
Tue Jul 7 14:51:11 EDT 2020


Hello:

This patch was applied to khilman/linux-amlogic.git (refs/heads/for-next).

On Thu,  4 Jun 2020 18:12:16 +0100 you wrote:
> From: Colin Ian King <colin.king at canonical.com>
> 
> Currently if the allocation of ldata fails the error return path
> does not kfree the allocated links object.  Fix this by adding
> an error exit return path that performs the necessary kfree'ing.
> 
> Addresses-Coverity: ("Resource leak")
> Fixes: 7864a79f37b5 ("ASoC: meson: add axg sound card support")
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> 
> [...]


Here is a summary with links:
  - ASoC: meson: fix memory leak of links if allocation of ldata fails
    https://git.kernel.org/khilman/linux-amlogic/c/6e801dc411329aff592fbd48fb116183d0acdb00

You are awesome, thank you!

-- 
Deet-doot-dot, I am a bot.
https://korg.wiki.kernel.org/userdoc/pwbot



More information about the linux-amlogic mailing list