]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitded0f4c3b78f061767ba0b9ad82e1deb16e5b6cd
tree745d97e7fdb2d650c4bb9167a3f53e0249e1a8a4
parent8e91887c8f40c5b0ae38ca95c6d1108c12572cd1
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