Mauro Carvalho Chehab
9be44ce7a0
media: dib8000: rewrite the init prbs logic
...
[ Upstream commit 8db11aebdb8f93f46a8513c22c9bd52fa23263aa ]
The logic at dib8000_get_init_prbs() has a few issues:
1. the tables used there has an extra unused value at the beginning;
2. the dprintk() message doesn't write the right value when
transmission mode is not 8K;
3. the array overflow validation is done by the callers.
Rewrite the code to fix such issues.
This should also shut up those smatch warnings:
drivers/media/dvb-frontends/dib8000.c:2125 dib8000_get_init_prbs() error: buffer overflow 'lut_prbs_8k' 14 <= 14
drivers/media/dvb-frontends/dib8000.c:2129 dib8000_get_init_prbs() error: buffer overflow 'lut_prbs_2k' 14 <= 14
drivers/media/dvb-frontends/dib8000.c:2131 dib8000_get_init_prbs() error: buffer overflow 'lut_prbs_4k' 14 <= 14
drivers/media/dvb-frontends/dib8000.c:2134 dib8000_get_init_prbs() error: buffer overflow 'lut_prbs_8k' 14 <= 14
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-22 11:45:27 +02:00
..
2017-07-20 15:07:50 -04:00
2017-06-20 10:22:11 -03:00
2017-06-20 10:35:08 -03:00
2017-06-20 10:24:54 -03:00
2017-01-31 10:52:23 -02:00
2017-01-31 10:52:23 -02:00
2017-01-31 10:48:14 -02:00
2016-11-18 15:00:22 -02:00
2018-02-16 20:23:04 +01:00
2016-10-11 15:06:33 -07:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-06-06 07:51:33 -03:00
2017-06-06 07:50:19 -03:00
2017-06-06 07:49:40 -03:00
2016-03-03 06:18:17 -03:00
2016-10-11 15:06:33 -07:00
2017-01-27 11:38:09 -02:00
2017-05-19 07:10:03 -03:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2016-11-18 15:00:22 -02:00
2016-02-04 16:27:30 -02:00
2016-10-11 15:06:33 -07:00
2016-11-18 15:00:22 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2016-11-18 15:00:22 -02:00
2016-10-11 15:06:33 -07:00
2016-11-18 15:00:22 -02:00
2016-10-11 15:06:33 -07:00
2016-11-18 15:00:22 -02:00
2016-10-11 15:06:33 -07:00
2017-07-20 14:58:27 -04:00
2016-10-11 15:06:33 -07:00
2016-09-22 10:43:09 -03:00
2017-01-31 08:45:41 -02:00
2016-09-22 10:43:09 -03:00
2016-09-22 10:43:09 -03:00
2016-09-22 10:43:09 -03:00
2016-10-11 17:34:10 -07:00
2017-06-20 09:40:55 -03:00
2018-02-16 20:23:04 +01:00
2017-06-20 09:56:11 -03:00
2017-01-27 11:38:09 -02:00
2017-08-27 07:51:30 -04:00
2016-01-25 12:01:08 -02:00
2016-11-18 09:47:48 -02:00
2016-11-18 15:00:22 -02:00
2017-09-23 07:21:33 -04:00
2016-10-11 15:06:33 -07:00
2016-11-18 15:00:22 -02:00
2017-11-02 11:10:55 +01:00
2017-07-20 14:57:19 -04:00
2017-11-02 11:10:55 +01:00
2021-09-22 11:45:27 +02:00
2017-11-02 11:10:55 +01:00
2017-08-27 08:46:42 -04:00
2017-11-02 11:10:55 +01:00
2016-11-23 12:58:10 -02:00
2017-11-02 11:10:55 +01:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-07-20 15:07:28 -04:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-05-19 07:10:03 -03:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2016-11-18 15:00:22 -02:00
2016-10-11 15:06:33 -07:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-09-23 07:21:33 -04:00
2017-11-02 11:10:55 +01:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2016-11-18 15:00:22 -02:00
2016-11-13 10:02:22 -08:00
2018-09-19 22:43:44 +02:00
2016-10-11 15:06:33 -07:00
2018-02-16 20:23:04 +01:00
2016-10-11 15:06:33 -07:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-08-20 10:20:30 -04:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2018-02-16 20:23:04 +01:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-08-20 07:25:09 -04:00
2016-11-18 15:00:22 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2018-05-25 16:17:56 +02:00
2017-02-03 13:45:48 -02:00
2016-11-18 15:00:22 -02:00
2016-10-11 15:06:33 -07:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-06-24 17:05:19 -03:00
2016-10-11 15:06:33 -07:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2016-07-08 16:58:05 -03:00
2019-05-31 06:47:34 -07:00
2016-11-18 15:00:22 -02:00
2016-10-11 15:06:33 -07:00
2017-11-02 11:10:55 +01:00
2017-07-20 16:29:11 -04:00
2016-11-18 15:00:22 -02:00
2016-10-11 15:06:33 -07:00
2017-04-10 12:43:54 -03:00
2017-08-27 18:06:34 -04:00
2016-06-07 15:41:58 -03:00
2016-11-22 16:04:30 -02:00
2017-08-27 18:06:52 -04:00
2016-03-03 09:26:05 -03:00
2018-02-16 20:23:04 +01:00
2017-01-27 11:38:09 -02:00
2017-05-19 07:10:03 -03:00
2017-01-27 11:38:09 -02:00
2017-08-20 07:25:09 -04:00
2017-08-20 07:25:09 -04:00
2017-08-20 07:25:09 -04:00
2017-08-20 07:25:09 -04:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-11-02 11:10:55 +01:00
2016-11-18 15:00:22 -02:00
2017-05-19 07:10:03 -03:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2016-07-08 17:02:33 -03:00
2016-11-18 15:00:22 -02:00
2016-06-09 08:48:46 -03:00
2017-02-03 14:23:39 -02:00
2016-05-04 22:40:02 +02:00
2016-11-18 15:00:22 -02:00
2016-05-04 22:40:02 +02:00
2016-11-18 15:00:22 -02:00
2016-10-11 15:06:33 -07:00
2017-05-19 07:10:03 -03:00
2016-10-11 15:06:33 -07:00
2017-07-20 14:57:35 -04:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2016-11-18 15:00:22 -02:00
2016-10-11 15:06:33 -07:00
2016-11-18 15:00:22 -02:00
2017-11-02 11:10:55 +01:00
2016-09-22 12:55:49 -03:00
2016-11-18 15:00:22 -02:00
2016-09-22 12:55:49 -03:00
2017-03-03 08:39:48 -03:00
2018-03-24 11:01:23 +01:00
2016-10-11 15:06:33 -07:00
2016-11-18 15:00:22 -02:00
2017-11-02 11:10:55 +01:00
2021-06-03 08:36:21 +02:00
2018-02-16 20:23:04 +01:00
2016-11-18 20:44:33 -02:00
2016-10-11 15:06:33 -07:00
2018-02-16 20:23:04 +01:00
2018-02-16 20:23:04 +01:00
2016-11-18 15:00:22 -02:00
2016-10-11 15:06:33 -07:00
2016-11-18 15:00:22 -02:00
2016-11-18 15:00:22 -02:00
2017-06-20 09:26:16 -03:00
2017-01-27 11:38:09 -02:00
2017-06-20 09:19:58 -03:00
2018-02-16 20:23:04 +01:00
2017-06-20 09:27:52 -03:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-08-20 07:19:37 -04:00
2017-08-27 06:42:53 -04:00
2017-08-20 07:14:09 -04:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2016-02-01 07:31:17 -02:00
2018-02-16 20:23:04 +01:00
2016-02-01 07:31:17 -02:00
2017-08-20 10:15:39 -04:00
2017-08-20 07:20:04 -04:00
2016-11-16 12:16:52 -02:00
2016-11-18 20:44:33 -02:00
2016-11-18 20:44:33 -02:00
2016-11-18 15:00:22 -02:00
2016-11-18 15:00:22 -02:00
2016-11-18 20:44:33 -02:00
2016-11-18 15:00:22 -02:00
2016-11-18 15:00:22 -02:00
2017-02-27 18:43:47 -08:00
2016-10-11 15:06:33 -07:00
2020-10-01 13:12:37 +02:00
2016-11-18 15:00:22 -02:00
2017-11-02 11:10:55 +01:00
2017-01-27 11:38:09 -02:00
2017-11-02 11:10:55 +01:00
2017-01-27 11:38:09 -02:00
2018-02-16 20:23:05 +01:00
2016-10-11 15:06:33 -07:00
2019-07-31 07:28:22 +02:00
2017-01-27 11:38:09 -02:00
2016-11-18 15:00:22 -02:00
2016-11-18 15:00:22 -02:00
2017-07-20 14:58:10 -04:00
2017-02-08 11:59:39 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2018-02-16 20:23:04 +01:00
2016-10-11 15:06:33 -07:00
2017-01-27 11:38:09 -02:00
2017-05-19 07:10:03 -03:00
2017-01-27 11:38:09 -02:00