diff options
author | Stefan Brüns <stefan.bruens@rwth-aachen.de> | 2017-02-05 14:57:59 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-04-21 07:31:24 (GMT) |
commit | fb00319317c152bf3528df13a54c28bf8c5daa55 (patch) | |
tree | 3678005dc4b516587be3b7a5ad576667d4153fe8 /net/sctp/Makefile | |
parent | 28d1e8b7ef81d254583f68627095f8a85e39597d (diff) | |
download | linux-fb00319317c152bf3528df13a54c28bf8c5daa55.tar.xz |
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 'net/sctp/Makefile')
0 files changed, 0 insertions, 0 deletions