V4L/DVB (5020): Fix: disable interrupts while at KM_BOUNCE_READ
authorMauro Carvalho Chehab <mchehab@infradead.org>
Sun, 14 Jan 2007 12:14:17 +0000 (10:14 -0200)
committerMauro Carvalho Chehab <mchehab@infradead.org>
Mon, 15 Jan 2007 18:25:28 +0000 (16:25 -0200)
commit35d6270b806562b37279d3970fa477aaeb372829
tree745d97e7fdb2d650c4bb9167a3f53e0249e1a8a4
parentc430ca1e16b2b4b30f567806c73e270caea8db1d
V4L/DVB (5020): Fix: disable interrupts while at KM_BOUNCE_READ

vivi.c uses the KM_BOUNCE_READ with local interrupts enabled.
This means that if a disk interrupt occurs while vivi.c is using this
fixmap slot, the vivi.c driver will, upon return from that interrupt, find
that the fixmap slot now points at a different physical page.
The net result will probably be rare corruption of disk file contents,
because viv.c will now be altering the page which the disk code was
recently using.

Thanks to Andrew Morton for pointing this.
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
drivers/media/video/vivi.c