[PATCH v2] ASoC: amd: change clk_get() to devm_clk_get() and add missed checks

Mark Brown broonie at kernel.org
Tue Dec 8 18:09:49 CET 2020


On Fri, 4 Dec 2020 14:36:10 +0800, Chuhong Yuan wrote:
> 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.

Applied to

   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next

Thanks!

[1/1] ASoC: amd: change clk_get() to devm_clk_get() and add missed checks
      commit: 95d3befbc5e1ee39fc8a78713924cf7ed2b3cabe

All being well this means that it will be integrated into the linux-next
tree (usually sometime in the next 24 hours) and sent to Linus during
the next merge window (or sooner if it is a bug fix), however if
problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing
and review of the tree, please engage with people reporting problems and
send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they
should be sent as incremental updates against current git, existing
patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying
to this mail.

Thanks,
Mark


More information about the Alsa-devel mailing list