summaryrefslogtreecommitdiffstats
path: root/sound/oss/dmabuf.c
diff options
context:
space:
mode:
authorJanusz Krzysztofik <jkrzyszt@tis.icnet.pl>2011-02-02 21:11:41 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-02-02 21:52:06 +0100
commit0962bb217ac74c4b8fae34c5367ebc63131c962c (patch)
tree27838d15c8936bff0329c7092e1eaae749a36246 /sound/oss/dmabuf.c
parentASoC: CX20442: fix NULL pointer dereference (diff)
downloadlinux-0962bb217ac74c4b8fae34c5367ebc63131c962c.tar.xz
linux-0962bb217ac74c4b8fae34c5367ebc63131c962c.zip
ASoC: fill in snd_soc_pcm_runtime.card before calling snd_soc_dai_link.init()
The .card member of the snd_soc_pcm_runtime structure pointed to by the snd_soc_dai_link.init() argument used to be initialized before the function being called. This has changed, probably unintentionally, after recent refactorings. Since the function implementations are free to make use of this pointer, move its assignment back before the function is called to avoid NULL pointer dereferences. Created and tested on Amstrad Delta againts linux-2.6.38-rc2 Signed-off-by: Janusz Krzysztofik <jkrzyszt@tis.icnet.pl> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/oss/dmabuf.c')
0 files changed, 0 insertions, 0 deletions