Mauro Carvalho Chehab ffe300107d [media] stv090x: add an extra protetion against buffer overflow
As pointed by smatch:
	drivers/media/dvb-frontends/stv090x.c:2787 stv090x_optimize_carloop() error: buffer overflow 'car_loop_apsk_low' 11 <= 13
	drivers/media/dvb-frontends/stv090x.c:2789 stv090x_optimize_carloop() error: buffer overflow 'car_loop_apsk_low' 11 <= 13
	drivers/media/dvb-frontends/stv090x.c:2791 stv090x_optimize_carloop() error: buffer overflow 'car_loop_apsk_low' 11 <= 13
	drivers/media/dvb-frontends/stv090x.c:2793 stv090x_optimize_carloop() error: buffer overflow 'car_loop_apsk_low' 11 <= 13
	drivers/media/dvb-frontends/stv090x.c:2795 stv090x_optimize_carloop() error: buffer overflow 'car_loop_apsk_low' 11 <= 13

The situation of a buffer overflow won't happen, in practice,
with the current values of car_loop table. Yet, the entire logic
that checks for those registration values is too complex. So,
better to add an explicit check, just in case someone changes
the car_loop tables causing a buffer overflow by mistake.

This also helps to remove several smatch warnings, with is good.

Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2014-12-04 15:28:46 -02:00
..
2013-03-23 09:03:59 -03:00
2013-03-23 09:03:59 -03:00
2014-11-05 08:09:27 -02:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2014-10-10 22:04:49 -04:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2013-04-22 16:58:16 -03:00
2014-09-26 06:47:58 -03:00
2013-03-23 09:03:59 -03:00
2013-02-06 09:24:09 -02:00
2012-09-23 20:11:26 -03:00
2013-03-23 09:03:59 -03:00
2013-03-23 09:03:59 -03:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2014-11-14 17:26:05 -02:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2013-03-23 09:03:59 -03:00
2013-03-23 09:03:59 -03:00
2013-03-23 09:03:59 -03:00
2014-11-14 17:26:05 -02:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2014-12-04 12:42:46 -02:00
2013-02-06 09:24:09 -02:00
2014-02-07 08:03:07 -02:00
2014-02-07 08:03:07 -02:00
2013-03-23 09:03:59 -03:00
2014-09-23 16:13:33 -03:00
2014-11-11 08:37:35 -02:00
2013-02-06 09:24:09 -02:00
2014-09-03 19:18:08 -03:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2012-09-18 12:46:27 -03:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00
2013-02-06 09:24:09 -02:00