]> git.baikalelectronics.ru Git - kernel.git/commit
[media] mb86a20s: Fix estimate_rate setting
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 8 Apr 2013 00:06:12 +0000 (21:06 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 8 Apr 2013 10:11:06 +0000 (07:11 -0300)
commit44cdc0d17dd4d5b2fc1eb4b6c761db249b9ba1d7
treef56386e354aa7c2f4a563bfad8fc6f4b0e99a770
parent38666501adc891556441f3f56aeb3681b6222838
[media] mb86a20s: Fix estimate_rate setting

As reported by Dan Carpenter <dan.carpenter@oracle.com>:
        Smatch warnings:
        drivers/media/dvb-frontends/mb86a20s.c:644 mb86a20s_layer_bitrate() error: buffer overflow 'state->estimated_rate' 3 <= 3
What happens there is that estimate_rate index should be the layer
number, and not the guard interval.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb-frontends/mb86a20s.c