diff options
author | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-08-11 21:29:54 +0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-08-11 21:41:23 +0300 |
commit | 4aabd91625d0887210f68382f3fccb29a4586792 (patch) | |
tree | 1a950da617bb1ae8e83598f4f3c0563ec9b0a743 /scripts/gdb/linux/utils.py | |
parent | d13a7b674af085eb67df73a20f5cc77310dd8602 (diff) | |
download | linux-4aabd91625d0887210f68382f3fccb29a4586792.tar.xz |
[media] horus3a: don't use variable length arrays
The Linux stack is short; we need to be able to count the number
of bytes used at stack on each function. So, we don't like to
use variable-length arrays, as complained by smatch:
drivers/media/dvb-frontends/horus3a.c:57:19: warning: Variable length array is used.
The max usecase of the driver seems to be 5 bytes + 1 for the
register.
So, let's be safe and allocate 6 bytes for the write buffer.
This should be enough to cover all cases. If not, let's print
an error message.
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions