diff options
| author | Axel Lin <[email protected]> | 2010-11-29 09:42:47 +0000 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2010-11-30 11:09:24 +0000 |
| commit | 3f1af9d26fb02a99a60a045b8ae93ccc6fe50b97 (patch) | |
| tree | 6af31955dd83eb3718050a5a0eeb1887bc8504b2 /tools/perf/scripts/python | |
| parent | ASoC: Add missing dev_set_drvdata in p1022_ds_probe (diff) | |
| download | kernel-3f1af9d26fb02a99a60a045b8ae93ccc6fe50b97.tar.gz kernel-3f1af9d26fb02a99a60a045b8ae93ccc6fe50b97.zip | |
ASoC: Fix missing spin_unlock_irqrestore
In nuc900_dma_hw_params(), if snd_pcm_lib_malloc_pages failed
it returns without calling spin_unlock_irqrestore().
Since snd_pcm_lib_malloc_pages() does not touch struct nuc900_audio,
we don't need to hold the lock while calling snd_pcm_lib_malloc_pages().
Fix it by moving spin_lock_irqsave() down to after snd_pcm_lib_malloc_pages().
In nuc900_dma_prepare(), spin_unlock_irqrestore() is missing in the error path.
Fix it by removing the return in default case.
Signed-off-by: Axel Lin <[email protected]>
Acked-by: Wan ZongShun <[email protected]>
Acked-by: Liam Girdwood <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
