diff options
author | Antti Palosaari <crope@iki.fi> | 2013-02-26 17:25:19 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-18 20:51:17 +0100 |
commit | aff8c2d475cb660ee246099dd15f269e9ebb7b1d (patch) | |
tree | e48d1977bece79d31e5088bf3f8f96bc6f0865b3 /drivers/media/usb/dvb-usb-v2/af9015.h | |
parent | [media] dvb_usb_v2: locked versions of USB bulk IO functions (diff) | |
download | linux-aff8c2d475cb660ee246099dd15f269e9ebb7b1d.tar.xz linux-aff8c2d475cb660ee246099dd15f269e9ebb7b1d.zip |
[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.h | 2 |
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; |