ASoC: SOF: fix debugfs initialisation error handling
authorGuennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Mon, 15 Mar 2021 16:39:30 +0000 (11:39 -0500)
committerMark Brown <broonie@kernel.org>
Tue, 16 Mar 2021 13:25:44 +0000 (13:25 +0000)
commit11fd6d8e097b5b179ea445e0206aaefc47e62845
treefd6437a28c608273fc4ebdb58eb80653e67fda3e
parent54d796b86eb3a5f99e22dca58b8e991ebcadd826
ASoC: SOF: fix debugfs initialisation error handling

If debugfs initialisation fails partially in sof_probe_continue() some
debugfs files and the root directory might have been created
successfully. They have to be cleaned up if some of them failed too.

Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Xiuli Pan <xiulipan@outlook.com>
Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210315163932.18663-2-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/core.c