Martin Wache
5332b62637
[media] dib7000p: avoid division by zero
...
dib7000p_read_word() may return zero on i2c errors, resulting in
dib7000p_get_internal_freq() returning zero.
So don't divide by the result of dib7000p_get_internal_freq()
without checking it for zero in dib7000p_set_dds().
On one of my machines the device
ID 2304:0229 Pinnacle Systems, Inc. PCTV Dual DVB-T 2001e
about once a day/every two days gets into a state, where
most (all?) I2C reads return with an error. Tuning during this
state will result in a divide by zero without this patch.
This patch doesn't fix the root cause for the device getting
into a bad state, but it allows me to unload/reload the drivers,
bringing it back into a usable state.
Signed-off-by: Martin Wache <M.Wache@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-02-03 10:54:20 -02:00
..
2017-01-27 11:38:09 -02:00
2015-08-11 12:58:20 -03:00
2015-08-11 07:10:04 -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-31 10:52:23 -02:00
2017-01-31 10:52:23 -02:00
2017-01-31 10:48:14 -02:00
2014-08-21 15:25:30 -05:00
2016-11-18 15:00:22 -02:00
2014-08-21 15:25:30 -05:00
2016-11-18 15:07:26 -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
2016-10-21 10:01:56 -02:00
2017-01-27 11:38:09 -02:00
2016-11-18 15:00:22 -02: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
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
2016-11-18 15:00:22 -02:00
2015-04-08 15:02:07 -03: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
2015-04-08 15:02:07 -03: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-01-30 15:44:42 -02: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
2016-06-07 12:08:12 -03: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
2015-04-08 15:02:07 -03:00
2017-01-27 11:38:09 -02:00
2015-04-08 15:02:07 -03: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
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-02-03 10:54:20 -02:00
2016-10-11 15:06:33 -07:00
2016-11-18 09:59:38 -02:00
2015-04-28 09:30:33 -03:00
2016-11-18 15:00:22 -02:00
2015-04-08 15:02:07 -03:00
2016-11-23 12:58:10 -02:00
2016-11-23 12:58:10 -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
2015-06-09 17:47:35 -03: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-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2017-01-27 11:38:09 -02:00
2015-04-08 15:02:07 -03: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
2016-11-18 15:07:26 -02:00
2016-10-11 15:06:33 -07:00
2016-11-18 15:07:26 -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
2015-04-08 15:02:07 -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-02-03 07:01:00 -02:00
2016-11-18 15:00:22 -02:00
2015-04-08 15:02:07 -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-01-27 11:38:09 -02:00
2016-11-18 15:00:22 -02:00
2015-04-08 15:05:12 -03: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
2015-08-11 14:59:05 -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
2016-11-18 15:00:22 -02:00
2015-06-10 11:10:27 -03:00
2016-11-18 15:00:22 -02:00
2016-10-11 15:06:33 -07:00
2017-02-03 07:01:00 -02:00
2016-11-18 15:00:22 -02:00
2015-06-09 17:47:35 -03:00
2016-11-18 15:00:22 -02:00
2016-10-11 15:06:33 -07:00
2016-06-07 15:46:47 -03:00
2016-12-01 12:47:22 -02:00
2016-06-07 15:41:58 -03:00
2016-11-22 16:04:30 -02:00
2016-12-27 14:00:15 -02:00
2016-03-03 09:26:05 -03:00
2016-11-18 15:00:22 -02:00
2015-04-08 15:02:07 -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
2016-11-18 15:00:22 -02:00
2015-04-08 15:02:07 -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-07-08 17:02:33 -03:00
2016-11-18 15:00:22 -02:00
2015-02-03 16:30:26 -02:00
2016-06-09 08:48:46 -03:00
2016-08-30 19:13:52 +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
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
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-09-22 12:55:49 -03:00
2016-11-18 15:00:22 -02:00
2016-09-22 12:55:49 -03:00
2017-01-31 10:26:23 -02:00
2017-01-31 10:26:52 -02: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
2016-10-11 15:06:33 -07:00
2016-11-18 15:00:22 -02:00
2015-04-08 15:02:07 -03:00
2016-11-18 15:00:22 -02:00
2015-04-08 15:02:07 -03:00
2015-02-03 18:16:18 -02:00
2016-11-18 15:10:41 -02:00
2015-04-08 15:02:07 -03:00
2016-11-18 20:44:33 -02:00
2016-10-11 15:06:33 -07:00
2015-11-17 06:45:05 -02:00
2015-11-17 06:45:05 -02:00
2016-11-18 20:44:33 -02:00
2015-11-17 06:41:53 -02:00
2016-11-23 12:41:49 -02:00
2015-04-08 15:02:07 -03: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
2015-04-08 15:02:07 -03:00
2016-11-18 15:00:22 -02:00
2015-04-08 15:02:07 -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-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
2016-02-01 07:31:17 -02:00
2016-11-18 20:44:33 -02:00
2016-02-01 07:31:17 -02:00
2016-11-16 12:16:52 -02:00
2014-09-23 17:04:00 -03:00
2016-11-18 20:44:33 -02:00
2015-04-08 15:02:07 -03:00
2016-11-18 20:44:33 -02:00
2015-04-08 15:02:07 -03:00
2015-04-08 15:02:07 -03:00
2016-11-18 15:00:22 -02:00
2015-04-08 15:02:07 -03:00
2016-11-18 15:00:22 -02:00
2015-04-08 15:02:07 -03:00
2015-11-17 06:43:59 -02:00
2016-11-18 20:44:33 -02:00
2015-04-08 15:02:07 -03:00
2016-11-18 15:00:22 -02:00
2016-11-18 15:00:22 -02:00
2016-11-18 15:00:22 -02:00
2016-10-11 15:06:33 -07:00
2015-08-11 07:34:58 -03:00
2016-11-18 15:00:22 -02:00
2015-08-11 07:10:53 -03:00
2016-11-18 15:00:22 -02:00
2015-04-08 15:02:07 -03:00
2014-07-04 15:33:46 -03:00
2017-01-27 11:38:09 -02:00
2016-10-11 15:06:33 -07:00
2017-01-27 11:38:09 -02:00
2016-11-18 15:07:26 -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
2016-11-18 15:00:22 -02:00
2015-04-08 15:02:07 -03:00
2016-11-18 15:00:22 -02:00
2015-04-08 15:02:07 -03:00
2017-02-03 06:45:35 -02:00
2017-02-03 06:45:35 -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-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