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)
commitca9dc8d06ab64543a6a31adac5003349c5671218
treeeda16b07d1e894e202b2295d8b16496dace39c7d
parent6a0d6733098965b8b58e8008e0fe1333d4f24953
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