summaryrefslogtreecommitdiff
path: root/lib/int_sqrt.c
diff options
context:
space:
mode:
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2016-08-11 13:39:00 (GMT)
committerMark Brown <broonie@kernel.org>2016-08-11 14:00:44 (GMT)
commit70fcad495b9903d362bdbf9ffba23259294064c8 (patch)
treefbdcf974a887faa995afc278f1acf6038de2178e /lib/int_sqrt.c
parent29b4817d4018df78086157ea3a55c1d9424a7cfc (diff)
downloadlinux-70fcad495b9903d362bdbf9ffba23259294064c8.tar.xz
ASoC: Fix leak of rtd in soc_bind_dai_link
If we fail to find a platform we simply return EPROBE_DEFER, but we have allocated the rtd pointer. All error paths before soc_add_pcm_runtime need to call soc_free_pcm_runtime first to avoid leaking the rtd pointer. A suitable error path already exists and is used else where in the function so simply use that here as well. Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'lib/int_sqrt.c')
0 files changed, 0 insertions, 0 deletions