linux_dsm_epyc7002/sound/soc
Russell King c9bd5e690a DMA-API: sound: fix dma mask handling in a lot of drivers
This code sequence is unsafe in modules:

static u64 mask = DMA_BIT_MASK(something);
...
	if (!dev->dma_mask)
		dev->dma_mask = &mask;

as if a module is reloaded, the mask will be pointing at the original
module's mask address, and this can lead to oopses.  Moreover, they
all follow this with:

	if (!dev->coherent_dma_mask)
		dev->coherent_dma_mask = mask;

where 'mask' is the same value as the statically defined mask, and this
bypasses the architecture's check on whether the DMA mask is possible.

Fix these issues by using the new dma_coerce_coherent_and_mask()
function.

Acked-by: Mark Brown <broonie@linaro.org>
Acked-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2013-10-31 14:48:47 +00:00
..
atmel DMA-API: sound: fix dma mask handling in a lot of drivers 2013-10-31 14:48:47 +00:00
au1x
blackfin DMA-API: sound: fix dma mask handling in a lot of drivers 2013-10-31 14:48:47 +00:00
cirrus Merge remote-tracking branch 'asoc/topic/ep93xx' into tmp 2013-08-30 11:04:21 +01:00
codecs Remove GENERIC_HARDIRQ config option 2013-09-13 15:09:52 +02:00
davinci DMA-API: sound: fix dma mask handling in a lot of drivers 2013-10-31 14:48:47 +00:00
dwc ASoC: designware_i2s: Remove unnecessary dev_set_drvdata() 2013-08-29 13:18:32 +01:00
fsl DMA-API: sound: fix dma mask handling in a lot of drivers 2013-10-31 14:48:47 +00:00
generic ASoC: simple-card: Provide owner and MODULE_ALIAS() 2013-08-23 19:04:20 +01:00
jz4740 DMA-API: sound: fix dma mask handling in a lot of drivers 2013-10-31 14:48:47 +00:00
kirkwood DMA-API: sound: fix dma mask handling in a lot of drivers 2013-10-31 14:48:47 +00:00
mid-x86
mxs Merge remote-tracking branch 'asoc/topic/fsl' into tmp 2013-09-01 21:15:52 +01:00
nuc900 DMA-API: sound: fix dma mask handling in a lot of drivers 2013-10-31 14:48:47 +00:00
omap DMA-API: sound: fix dma mask handling in a lot of drivers 2013-10-31 14:48:47 +00:00
pxa DMA-API: sound: fix dma mask handling in a lot of drivers 2013-10-31 14:48:47 +00:00
s6000 DMA-API: sound: fix dma mask handling in a lot of drivers 2013-10-31 14:48:47 +00:00
samsung DMA-API: sound: fix dma mask handling in a lot of drivers 2013-10-31 14:48:47 +00:00
sh ASoC: rsnd: fixup flag name of rsnd_scu_platform_info 2013-09-09 16:06:20 +01:00
spear
tegra Merge remote-tracking branch 'asoc/topic/tegra' into asoc-next 2013-08-22 14:28:52 +01:00
txx9
ux500
Kconfig
Makefile
soc-cache.c
soc-compress.c
soc-core.c Merge remote-tracking branch 'asoc/topic/core' into tmp 2013-08-30 11:04:14 +01:00
soc-dapm.c Merge remote-tracking branch 'asoc/topic/dapm' into tmp 2013-09-01 21:15:50 +01:00
soc-generic-dmaengine-pcm.c
soc-io.c
soc-jack.c ASoC: jack: Remove unnecessary call to snd_soc_dapm_new_widgets() 2013-08-27 15:37:33 +01:00
soc-pcm.c Merge remote-tracking branch 'asoc/topic/fsl' into tmp 2013-09-01 21:15:52 +01:00
soc-utils.c