]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Don't try to register debugfs entries if the parent does not exist
authorLars-Peter Clausen <lars@metafoo.de>
Thu, 9 Apr 2015 08:52:38 +0000 (10:52 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 9 Apr 2015 11:23:14 +0000 (12:23 +0100)
commit966d6ecd76d44964fe0a418c58d5b5919b5c2dc7
tree39ddb89fa018f224eb46b67894f0ff13ae986ac5
parente29f488d8a9e991527dfd6ad8d51aacec75b07b6
ASoC: Don't try to register debugfs entries if the parent does not exist

If the registration of a debugfs directory fails this is treated as a
non-fatal error in ASoC and operation continues as normal. This means we
need to be careful and check if the parent debugfs directory exists if we
try to register a debugfs file or sub-directory. Otherwise we might end up
passing NULL for the parent and the file or directory will be registered in
the top-level debugfs directory.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c
sound/soc/soc-dapm.c
sound/soc/soc-pcm.c