ASoC: smd845: fix memory leak
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Fri, 3 Aug 2018 13:42:11 +0000 (08:42 -0500)
committerMark Brown <broonie@kernel.org>
Fri, 3 Aug 2018 14:46:34 +0000 (15:46 +0100)
commit8530ebf1079ccc84ffa32d970cdcae168b2f3684
treeecb7b0ace7ce53e1454f58b89c87cfd3203e624f
parent26a6dce8ef99b0199e7682d1c203cf7d0b5fd5b0
ASoC: smd845: fix memory leak

In case memory resources for *card* were allocated, release them before
return.

Addresses-Coverity-ID: 1472244 ("Resource leak")
Fixes: 6b1687bf76ef ("ASoC: qcom: add sdm845 sound card support")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/sdm845.c