[media] mb86a20s: Fix estimate_rate setting
authorMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 1 Apr 2013 14:11:27 +0000 (11:11 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 4 Apr 2013 17:32:13 +0000 (14:32 -0300)
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>

No differences found