summaryrefslogtreecommitdiff
path: root/drivers/media/usb/dvb-usb-v2/af9015.h
diff options
context:
space:
mode:
authorAntti Palosaari <crope@iki.fi>2013-02-26 13:25:19 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-18 16:51:17 -0300
commitaff8c2d475cb660ee246099dd15f269e9ebb7b1d (patch)
treee48d1977bece79d31e5088bf3f8f96bc6f0865b3 /drivers/media/usb/dvb-usb-v2/af9015.h
parentacb0549acc270c8206ecfdd35d34fc349c3457a0 (diff)
downloadlinux-aff8c2d475cb660ee246099dd15f269e9ebb7b1d.tar.gz
linux-aff8c2d475cb660ee246099dd15f269e9ebb7b1d.tar.xz
[media] af9015: do not use buffers from stack for usb_bulk_msg()
WARNING: at lib/dma-debug.c:947 check_for_stack+0xa7/0xf0() ehci-pci 0000:00:04.1: DMA-API: device driver maps memory fromstack Reported-by: poma <pomidorabelisima@gmail.com> Signed-off-by: Antti Palosaari <crope@iki.fi> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/usb/dvb-usb-v2/af9015.h')
-rw-r--r--drivers/media/usb/dvb-usb-v2/af9015.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/usb/dvb-usb-v2/af9015.h b/drivers/media/usb/dvb-usb-v2/af9015.h
index 533637dedd23..3a6f3ad1eadb 100644
--- a/drivers/media/usb/dvb-usb-v2/af9015.h
+++ b/drivers/media/usb/dvb-usb-v2/af9015.h
@@ -115,7 +115,9 @@ enum af9015_ir_mode {
AF9015_IR_MODE_POLLING, /* just guess */
};
+#define BUF_LEN 63
struct af9015_state {
+ u8 buf[BUF_LEN]; /* bulk USB control message */
u8 ir_mode;
u8 rc_repeat;
u32 rc_keycode;