Skip to content
Unverified Commit 6e801dc4 authored by Colin Ian King's avatar Colin Ian King Committed by Mark Brown
Browse files

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



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.

Fixes: 7864a79f ("ASoC: meson: add axg sound card support")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Addresses-Coverity: ("Resource leak")
Link: https://lore.kernel.org/r/20200604171216.60043-1-colin.king@canonical.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 97ed3e50
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment