diff options
author | 2011-08-04 16:44:42 -0600 | |
---|---|---|
committer | 2011-08-09 09:40:57 +0900 | |
commit | a96edd59b2bc88b3d1ea47e0ba48076d65db9302 (patch) | |
tree | b6c1ac738bd363db83e2ac7ec990474170591450 /lib | |
parent | Merge branch 'fix/asoc' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6 into for-3.1 (diff) | |
download | linux-rng-a96edd59b2bc88b3d1ea47e0ba48076d65db9302.tar.xz linux-rng-a96edd59b2bc88b3d1ea47e0ba48076d65db9302.zip |
ASoC: Tegra: tegra_pcm_deallocate_dma_buffer: Don't OOPS
Not all PCM devices have all sub-streams. Specifically, the SPDIF driver
only supports playback and hence has no capture substream. Check whether
a substream exists before dereferencing it, when de-allocating DMA
buffers in tegra_pcm_deallocate_dma_buffer.
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: stable@kernel.org
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions