aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
authorRobertus Diawan Chris <robertusdchris@gmail.com>2026-05-19 12:40:24 +0700
committerMark Brown <broonie@kernel.org>2026-05-19 15:57:03 +0100
commit298a43b54432fbc3a32949a94c72544ee18c8c00 (patch)
tree50088128c1cd576be6b0f8ab03226878ad8c6faf /sound
parentfd3b95866d86844ae747fce9b3438d73ed5f1e7a (diff)
downloadlinux-next-history-298a43b54432fbc3a32949a94c72544ee18c8c00.tar.gz
ASoC: soc-utils: Add missing va_end in snd_soc_ret()
The default case in snd_soc_ret() use va_start without va_end to cleanup "args" object which can cause undefined behavior. So, add missing va_end to cleanup "args" object. This is reported by Coverity Scan as "Missing varargs init or cleanup". Fixes: 943116ba2a6a ("ASoC: add common snd_soc_ret() and use it") Signed-off-by: Robertus Diawan Chris <robertusdchris@gmail.com> Link: https://patch.msgid.link/20260519054024.274741-1-robertusdchris@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/soc-utils.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/soc-utils.c b/sound/soc/soc-utils.c
index c8adfff826bd4..9cb7567e263eb 100644
--- a/sound/soc/soc-utils.c
+++ b/sound/soc/soc-utils.c
@@ -36,6 +36,7 @@ int snd_soc_ret(const struct device *dev, int ret, const char *fmt, ...)
vaf.va = &args;
dev_err(dev, "ASoC error (%d): %pV", ret, &vaf);
+ va_end(args);
}
return ret;