Skip to content

Commit

Permalink
ASoC: mpc5200_dma: Don't overwrite ac97 device private_data
Browse files Browse the repository at this point in the history
The mpc5200_dma overwrites the private_data field of the CODEC's AC'97
device with the DMA drivers private data, but never actually reads it again.
Given that the private_data field is supposed to be owned by the AC'97
driver, overwriting it may cause undefined behavior. This patch removes the
code that overwrites the field from the driver.

Signed-off-by: Lars-Peter Clausen <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
  • Loading branch information
larsclausen authored and broonie committed Nov 18, 2014
1 parent 35480e3 commit 65c72ef
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sound/soc/fsl/mpc5200_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,9 +327,6 @@ static int psc_dma_new(struct snd_soc_pcm_runtime *rtd)
goto capture_alloc_err;
}

if (rtd->codec->ac97)
rtd->codec->ac97->private_data = psc_dma;

return 0;

capture_alloc_err:
Expand Down

0 comments on commit 65c72ef

Please sign in to comment.