[PATCH v?] ASoC: mediatek: mt8365: Add check for devm_kcalloc() in mt8365_afe_suspend()

Markus Elfring Markus.Elfring at web.de
Mon Sep 22 08:35:35 PDT 2025


…
> Add a NULL check and bail out with -ENOMEM, making sure to disable the
> main clock via the existing error path to keep clock state balanced.

How do you think about to increase the application of scope-based resource management?


…
> ---
>  sound/soc/mediatek/mt8365/mt8365-afe-pcm.c | 4 ++++
…

Some contributors would appreciate patch version descriptions.
https://lore.kernel.org/all/?q=%22This+looks+like+a+new+version+of+a+previously+submitted+patch%22
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/submitting-patches.rst?h=v6.17-rc7#n310

See also:
https://lore.kernel.org/linux-sound/20250918140758.3583830-1-lgs201920130244@gmail.com/

Regards,
Markus



More information about the linux-arm-kernel mailing list