Mauro Carvalho Chehab
4aabd91625
[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>
2015-08-11 15:41:23 -03:00
..
2015-06-09 17:47:35 -03:00
2015-08-11 12:58:20 -03:00
2015-08-11 07:10:04 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2014-11-04 18:20:35 -02:00
2015-08-11 12:58:20 -03:00
2014-09-21 19:39:47 -03:00
2014-08-21 15:25:30 -05:00
2015-06-09 17:47:35 -03:00
2014-08-21 15:25:30 -05:00
2015-08-11 14:54:17 -03:00
2015-08-11 14:54:17 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-08-11 12:58:20 -03:00
2015-06-09 17:47:35 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-05-18 16:33:55 -03:00
2015-06-09 17:47:35 -03:00
2015-04-28 09:26:02 -03:00
2015-06-09 17:47:35 -03:00
2015-06-09 17:47:35 -03:00
2015-06-09 17:47:35 -03:00
2015-06-09 17:47:35 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-08-11 15:06:51 -03:00
2015-08-11 15:37:10 -03:00
2015-08-11 15:06:51 -03:00
2015-05-01 06:09:10 -03:00
2015-04-08 15:02:07 -03:00
2015-06-05 11:26:31 -03:00
2015-04-08 15:02:07 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-28 09:30:33 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-08-11 15:41:23 -03:00
2015-08-11 14:51:57 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-04-08 15:02:07 -03:00
2015-04-08 15:02:07 -03:00
2015-04-08 15:02:07 -03:00
2015-08-11 15:06:51 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2014-12-22 17:52:20 -02:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:05:12 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-04-08 15:02:07 -03:00
2015-08-11 14:59:05 -03:00
2015-08-11 14:59:05 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-10 11:08:50 -03:00
2015-08-11 12:58:20 -03:00
2015-06-10 11:10:27 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-08-11 15:06:51 -03:00
2015-06-09 17:47:35 -03:00
2015-06-09 17:47:35 -03:00
2015-06-09 17:47:35 -03:00
2015-04-28 09:26:02 -03:00
2015-04-08 06:54:41 -03:00
2015-03-03 13:07:55 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-08-11 12:58:20 -03:00
2015-02-03 16:30:26 -02:00
2015-06-09 17:47:35 -03:00
2015-08-11 12:59:38 -03:00
2015-05-18 15:59:13 -03:00
2015-08-11 12:58:20 -03:00
2015-05-18 15:55:52 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-28 09:26:02 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2014-09-23 16:13:33 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:05:12 -03:00
2015-06-09 17:47:35 -03:00
2015-08-11 12:58:20 -03:00
2015-05-12 13:16:37 -03:00
2014-09-02 15:06:49 -03:00
2015-08-11 12:58:20 -03:00
2014-09-02 15:06:49 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-02-03 18:16:18 -02:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-04-08 15:02:07 -03:00
2014-07-22 21:24:24 -03:00
2014-07-22 21:23:53 -03:00
2014-02-28 15:20:33 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 21:09:51 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-05-01 06:13:23 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2014-09-23 17:04:00 -03:00
2015-04-08 15:02:07 -03:00
2015-04-08 15:02:07 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2014-07-22 21:24:24 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-06-09 17:47:35 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-08-11 07:34:58 -03:00
2015-08-11 12:58:20 -03:00
2015-08-11 07:10:53 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2014-07-04 15:33:46 -03:00
2014-07-22 21:00:54 -03:00
2015-04-08 15:02:07 -03:00
2015-08-11 12:58:20 -03:00
2015-06-10 11:12:25 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00
2015-04-08 15:02:07 -03:00
2014-09-26 06:50:59 -03:00
2015-04-08 15:02:07 -03:00
2015-06-09 17:47:35 -03:00
2015-04-08 15:02:07 -03:00