diff options
| author | Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com> | 2026-01-10 11:53:36 -0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2026-02-26 15:01:03 -0800 |
| commit | 3ab7a6711d04e7e94743b3785786b89e4e65ba57 (patch) | |
| tree | 9bc285a715e7077931dc949613647781629f0af9 /include/linux/string.h | |
| parent | 044a2da3411aea7fd82d7a5c3b08f98ef569609b (diff) | |
ASoC: cs4271: Fix resource leak in cs4271_soc_resume()
[ Upstream commit fef1f756155c30511397bbcd9d55640ab2e44d99 ]
Smatch detects this resource leak:
sound/soc/codecs/cs4271.c:548 cs4271_soc_resume() warn:
'cs4271->clk' from clk_prepare_enable() not released on lines: 540,546.
Instead of direct returns, unprepare the clock and disable regulators on
the error paths.
Fixes: cf6bf51b5325 ("ASoC: cs4271: Add support for the external mclk")
Fixes: 9a397f473657 ("ASoC: cs4271: add regulator consumer support")
Signed-off-by: Harshit Mogalapalli <harshit.m.mogalapalli@oracle.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Acked-by: Herve Codina <herve.codina@bootlin.com>
Reviewed-by: Alexander Sverdlin <alexander.sverdlin@gmail.com>
Link: https://patch.msgid.link/20260110195337.2522347-1-harshit.m.mogalapalli@oracle.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux/string.h')
0 files changed, 0 insertions, 0 deletions
