[PATCH v2] isoc: mediatek: Check for error clk pointer
Mark Brown
broonie at kernel.org
Fri Dec 24 08:17:36 PST 2021
On Wed, 22 Dec 2021 09:51:57 +0800, Jiasheng Jiang wrote:
> On Wed, Dec 22, 2021 at 01:57:15AM +0800, Mark Brown wrote:
> >> + for (i = CLK_NONE + 1; i < CLK_MAX; i++) {
> >> clk[i] = devm_clk_get(&pdev->dev, clk_names[i]);
> >> + if (IS_ERR(clk[i]))
> >> + return PTR_ERR(clk[i]);
> >
> > This now pays attention to the error code here which is good but...
> >
> >> - init_clks(pdev, clk);
> >> + ret = init_clks(pdev, clk);
> >> + if (ret)
> >> + return ERR_PTR(-ENOMEM);
> >
> > ...then discards it here with a random most likely inappropriate error
> > code.
>
> [...]
Applied to
https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git for-next
Thanks!
[1/1] isoc: mediatek: Check for error clk pointer
commit: 9de2b9286a6dd16966959b3cb34fc2ddfd39213e
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 Linux-mediatek
mailing list