]> 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)
commit18779a4366556188c93d75c53b22f52515eda994
treeeda16b07d1e894e202b2295d8b16496dace39c7d
parent652b04aabe195b533a7b63329c2780d93d8ffaed
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