diff options
| author | Amadeusz Sławiński <[email protected]> | 2019-06-17 13:36:34 +0200 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2019-06-25 15:32:47 +0100 |
| commit | 776cb3b80ede9ef4ad4c8aac22fcbdf4852b44cd (patch) | |
| tree | d045225f50541b7ed9ede92d694f58c919d944d9 /tools/perf/scripts | |
| parent | d5fcaaba54ce729a018e50938aa6d355cffc7ef4 (diff) | |
ASoC: Intel: Skylake: Initialize lists before access so they are safe to use
If skl_probe_work() was not run driver ends up dereferencing NULL
pointer when operating on lists in skl_platform_unregister().
To fix this initialize lists in skl_create(). Also run
cancel_work_sync() before all cleanup functions, so we don't end up
unnecessarily running probe work.
Easily reproducible with:
while true; do modprobe snd_soc_skl; rmmod snd_soc_skl; done
(with the assumption that relevant drivers are added to blacklist on
system boot)
Signed-off-by: Amadeusz Sławiński <[email protected]>
Reviewed-by: Pierre-Louis Bossart <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts')
0 files changed, 0 insertions, 0 deletions