]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] CDRW/DVD packet writing data corruption fix
authorPeter Osterlund <petero2@telia.com>
Tue, 17 May 2005 04:53:42 +0000 (21:53 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Tue, 17 May 2005 14:59:18 +0000 (07:59 -0700)
commitad6811ae1bd87cda3881000ab7bde45f665bd8ea
treebdc3f674c4d0d82c3e6695f453eeb641a0eea5e6
parente4bdc11e47eff60bf041f070f79559174075e4c7
[PATCH] CDRW/DVD packet writing data corruption fix

I found a bug in the packet writing driver that could cause data
corruption.  The problem arised if the driver got a write request for a
sector in a "zone" it was already working on.  In that case it was supposed
to queue the write request until it was done processing earlier requests
for the same zone, and instead work on some other zone in the mean time.
However, if there was no other zone to work on, the driver would initiate
two packet_data objects for the same zone, causing unpredictable things to
happen.

Signed-off-by: Peter Osterlund <petero2@telia.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/block/pktcdvd.c