V4L/DVB (3766): Correct buffer size calculations in cx88-core.c
authorDuncan Sands <duncan.sands@math.u-psud.fr>
Tue, 11 Apr 2006 13:18:57 +0000 (10:18 -0300)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Fri, 12 May 2006 22:54:50 +0000 (19:54 -0300)
The computation in cx88_risc_buffer suffers from the mistake:
a non-zero padding value can cause more page borders to be crossed,
leading to big buffer over-runs.
This patch changes the additive constant from 3 + 4 to 4
It also changees the constant in cx88_risc_databuffer from 3 + 4 to 2,
because 2 dwords are the correct vaule.

Signed-off-by: Duncan Sands <baldrick@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>

No differences found