]> git.baikalelectronics.ru Git - kernel.git/commit
media: airspy: respect the DMA coherency rules
authorOliver Neukum <oneukum@suse.com>
Wed, 18 May 2022 08:10:45 +0000 (09:10 +0100)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 20 Jun 2022 09:30:34 +0000 (10:30 +0100)
commit4530051b876e4cd1b29b7954a511c235b9119a1c
treeeda16b07d1e894e202b2295d8b16496dace39c7d
parent537ad66b463f8b4e44d472d3ccaf99fe445c07b0
media: airspy: respect the DMA coherency rules

If we want to avoid memory corruption
on incoherent architectures, buffers for DMA
must not reside
- on the stack
- embedded within other structures

Allocate them separately.

v2: fix uninitialized return value

Signed-off-by: Oliver Neukum <oneukum@suse.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/usb/airspy/airspy.c