linux/sound/soc
Nikita Zhandarovich 86a24e99c9
ASoC: fsl_asrc_dma: fix potential null-ptr-deref
dma_request_slave_channel() may return NULL which will lead to
NULL pointer dereference error in 'tmp_chan->private'.

Correct this behaviour by, first, switching from deprecated function
dma_request_slave_channel() to dma_request_chan(). Secondly, enable
sanity check for the resuling value of dma_request_chan().
Also, fix description that follows the enacted changes and that
concerns the use of dma_request_slave_channel().

Fixes: 706e2c8811 ("ASoC: fsl_asrc_dma: Reuse the dma channel if available in Back-End")
Co-developed-by: Natalia Petrova <n.petrova@fintech.ru>
Signed-off-by: Nikita Zhandarovich <n.zhandarovich@fintech.ru>
Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com>
Link: https://lore.kernel.org/r/20230417133242.53339-1-n.zhandarovich@fintech.ru
Signed-off-by: Mark Brown <broonie@kernel.org>
2023-04-19 13:42:56 +01:00
..
adi
amd ASoC: amd: yc: Add DMI entries to support Victus by HP Laptop 16-e1xxx (8A22) 2023-03-17 13:05:49 +00:00
apple ASoC: apple: mca: Improve handling of unavailable DMA channels 2023-02-24 16:31:20 +00:00
atmel ASoC: mchp-pdmc: fix poc noises when starting 2023-02-28 17:59:15 +00:00
au1x
bcm
cirrus sound updates for 6.3-rc1 2023-02-22 10:29:05 -08:00
codecs ASoC: max98373: change power down sequence for smart amp 2023-04-06 16:49:35 +01:00
dwc
fsl ASoC: fsl_asrc_dma: fix potential null-ptr-deref 2023-04-19 13:42:56 +01:00
generic ASoC: simple-card-utils: create jack inputs for aux_devs 2023-01-27 12:20:55 +00:00
hisilicon
img
intel ASoC: Intel: bytcr_rt5640: Add quirk for the Acer Iconia One 7 B1-750 2023-03-22 19:05:50 +00:00
jz4740 ASoC: jz4740-i2s: Remove .set_sysclk() 2022-10-31 13:20:14 +00:00
kirkwood ASoC: kirkwood: Iterate over array indexes instead of using pointer math 2023-01-28 10:51:05 +00:00
mediatek ASoC: mediatek: mt8195: add missing initialization 2023-03-01 14:49:17 +00:00
meson ASoC: meson: use helper function 2023-01-31 11:05:03 +00:00
mxs
pxa - Daniel Verkamp has contributed a memfd series ("mm/memfd: add 2023-02-23 17:09:35 -08:00
qcom ASoC: qcom: q6prm: fix incorrect clk_root passed to ADSP 2023-03-05 23:36:37 +00:00
rockchip ASoC: rockchip: use helper function 2023-01-31 11:05:04 +00:00
samsung sound updates for 6.3-rc1 2023-02-22 10:29:05 -08:00
sh ASoC: rsnd: adg: Fix BRG typos 2023-02-16 13:11:35 +00:00
sof ASoC: SOF: pm: Tear down pipelines only if DSP was active 2023-04-05 11:39:51 +01:00
spear ASoC: spear: use helper function 2023-01-31 11:04:59 +00:00
sprd
sti
stm ASoC: stm32: i2s: remove irqf_oneshot flag 2022-11-10 17:50:52 +00:00
sunxi ASoC: sunxi: use devm_platform_get_and_ioremap_resource() 2022-11-14 11:30:31 +00:00
tegra ASoC: tegra: use helper function 2023-01-31 11:05:05 +00:00
ti sound updates for 6.3-rc1 2023-02-22 10:29:05 -08:00
uniphier ASoC: uniphier: aio-core: Make some read-only arrays static const 2022-12-05 14:05:40 +00:00
ux500 ASoC: ux500: remove stedma40 references 2023-01-20 12:05:57 +00:00
xilinx
xtensa
Kconfig
Makefile
soc-ac97.c ASoC: soc-ac97: Return correct error codes 2023-02-15 16:09:07 +00:00
soc-acpi.c
soc-card.c
soc-component.c ASoC: soc-component: add get_jack_type 2023-01-27 12:20:55 +00:00
soc-compress.c ASoC: soc-compress.c: fixup private_data on snd_soc_new_compress() 2023-01-28 10:51:06 +00:00
soc-core.c ASoC: soc-core.c: use helper function 2023-01-31 11:05:07 +00:00
soc-dai.c ASoC: soc-dai.h: cleanup Playback/Capture data for snd_soc_dai 2023-01-31 11:05:12 +00:00
soc-dapm.c ASoC: soc-dapm.c: use helper function 2023-01-31 11:05:08 +00:00
soc-devres.c
soc-generic-dmaengine-pcm.c ASoC: soc.h: remove num_cpus/codecs 2022-09-20 12:19:30 +01:00
soc-jack.c
soc-link.c
soc-ops.c ASoC: ops: Correct bounds check for second channel on SX controls 2022-11-25 16:29:33 +00:00
soc-pcm.c ASoC: soc-pcm: fix hw->formats cleared by soc_pcm_hw_init() for dpcm 2023-03-14 13:30:16 +00:00
soc-topology-test.c
soc-topology.c ASoC: Updates for v6.3 2023-02-16 14:32:04 +01:00
soc-utils-test.c
soc-utils.c ASoC: soc-utils: Remove __exit for snd_soc_util_exit() 2022-11-07 13:37:04 +00:00