summaryrefslogtreecommitdiffstats
path: root/drivers/fpga/fpga-mgr.c
diff options
context:
space:
mode:
authorStefan Brüns <stefan.bruens@rwth-aachen.de>2017-02-05 12:57:59 -0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-04-21 09:32:42 +0200
commite0116f4d9a9ad5112d315b236c7b3d7036d404d7 (patch)
treea9c9bc754f9d4f14e61b81f86f77d3674a3cf5e4 /drivers/fpga/fpga-mgr.c
parentb1bfb5083bfa79d1400009ac6265bfb5f2c09ec9 (diff)
downloadlinux-stable-e0116f4d9a9ad5112d315b236c7b3d7036d404d7.tar.gz
linux-stable-e0116f4d9a9ad5112d315b236c7b3d7036d404d7.tar.bz2
linux-stable-e0116f4d9a9ad5112d315b236c7b3d7036d404d7.zip
cxusb: Use a dma capable buffer also for reading
commit 3f190e3aec212fc8c61e202c51400afa7384d4bc upstream. Commit 17ce039b4e54 ("[media] cxusb: don't do DMA on stack") added a kmalloc'ed bounce buffer for writes, but missed to do the same for reads. As the read only happens after the write is finished, we can reuse the same buffer. As dvb_usb_generic_rw handles a read length of 0 by itself, avoid calling it using the dvb_usb_generic_read wrapper function. Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com> Cc: Ben Hutchings <ben@decadent.org.uk> Cc: Brad Spengler <spender@grsecurity.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
0 files changed, 0 insertions, 0 deletions