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 Merge remote-tracking branch 'asoc/topic/au1x' into asoc-next 2013-08-22 14:28:29 +01:00
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 ASoC: mfld: Remove unused variable 2013-06-28 10:59:14 +01:00
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 ALSA: move dmaengine implementation from ASoC to ALSA core 2013-08-15 11:18:09 +01:00
tegra Merge remote-tracking branch 'asoc/topic/tegra' into asoc-next 2013-08-22 14:28:52 +01:00
txx9 ASoC: txx9: don't check resource with devm_ioremap_resource 2013-07-24 15:37:48 +01:00
ux500 ASoC: mop500: add .owner to struct snd_soc_card 2013-07-15 11:12:24 +01:00
Kconfig ALSA: move dmaengine implementation from ASoC to ALSA core 2013-08-15 11:18:09 +01:00
Makefile ALSA: move dmaengine implementation from ASoC to ALSA core 2013-08-15 11:18:09 +01:00
soc-cache.c ASoC: cache: Standardise ASoC cache messages 2012-11-21 11:39:51 +09:00
soc-compress.c ASoC: compress: Use power efficient workqueue 2013-08-12 11:04:54 +01:00
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 ASoC: generic-dmaengine-pcm: call dma_request_slave_channel() 2013-04-23 11:34:29 +01:00
soc-io.c PTR_RET is now PTR_ERR_OR_ZERO(): Replace most. 2013-07-15 11:25:01 +09:30
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 ASoC: simplify registration of snd-soc-dummy device 2013-05-17 12:07:49 +01:00