summaryrefslogtreecommitdiff
path: root/drivers/hwtracing/coresight/coresight-etb10.c
diff options
context:
space:
mode:
authorChuhong Yuan <hslester96@gmail.com>2020-12-04 14:36:10 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-12-30 11:53:43 +0100
commit64ffbfb1d734001fd0b9a23ab635bd610eacbdd0 (patch)
tree3ce868ce795d31ebe2e9c1e4c90e339fcb5331a7 /drivers/hwtracing/coresight/coresight-etb10.c
parente52398d49d8d20ea93e564ccfa55a814bb08f655 (diff)
ASoC: amd: change clk_get() to devm_clk_get() and add missed checks
[ Upstream commit 95d3befbc5e1ee39fc8a78713924cf7ed2b3cabe ] cz_da7219_init() does not check the return values of clk_get(), while da7219_clk_enable() calls clk_set_rate() to dereference the pointers. Add checks to fix the problems. Also, change clk_get() to devm_clk_get() to avoid data leak after failures. Fixes: bb24a31ed584 ("ASoC: AMD: Configure wclk and bclk of master codec") Signed-off-by: Chuhong Yuan <hslester96@gmail.com> Link: https://lore.kernel.org/r/20201204063610.513556-1-hslester96@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/hwtracing/coresight/coresight-etb10.c')
0 files changed, 0 insertions, 0 deletions