]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: cs-amp-lib: Fix missing dput() after debugfs_lookup()
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Thu, 21 May 2026 12:25:10 +0000 (13:25 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 21 May 2026 14:13:49 +0000 (15:13 +0100)
commitba28a07a9a0b53a538c809e04e517e1ce1f1bee3
treec2063b754d505dcb5c0cce5c69023e378dec74d5
parent67a52d3ebb5a0ae0c0e23ffa99470d9463179c9f
ASoC: cs-amp-lib: Fix missing dput() after debugfs_lookup()

Rewrite cs_amp_create_debugfs() so that dput() will be called on
a valid dentry returned from debugfs_lookup().

The pointer returned from debugfs_lookup() must be released by dput().
The pointer returned from debugfs_create_dir() does not need to be
passed to dput().

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Fixes: cdd27fa3298a ("ASoC: cs-amp-lib: Add helpers for factory calibration")
Link: https://patch.msgid.link/20260521122511.987322-3-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs-amp-lib.c