Commit acbf58e5 authored by Lucas Tanure's avatar Lucas Tanure Committed by Mark Brown

ASoC: wm_adsp: Let soc_cleanup_component_debugfs remove debugfs

soc_cleanup_component_debugfs will debugfs_remove_recursive
the component->debugfs_root, so adsp doesn't need to also
remove the same entry.
By doing that adsp also creates a race with core component,
which causes a NULL pointer dereference
Signed-off-by: default avatarLucas Tanure <tanureal@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20210728104416.636591-1-tanureal@opensource.cirrus.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 31428c78
...@@ -747,7 +747,6 @@ static void wm_adsp2_init_debugfs(struct wm_adsp *dsp, ...@@ -747,7 +747,6 @@ static void wm_adsp2_init_debugfs(struct wm_adsp *dsp,
static void wm_adsp2_cleanup_debugfs(struct wm_adsp *dsp) static void wm_adsp2_cleanup_debugfs(struct wm_adsp *dsp)
{ {
wm_adsp_debugfs_clear(dsp); wm_adsp_debugfs_clear(dsp);
debugfs_remove_recursive(dsp->debugfs_root);
} }
#else #else
static inline void wm_adsp2_init_debugfs(struct wm_adsp *dsp, static inline void wm_adsp2_init_debugfs(struct wm_adsp *dsp,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment