]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ide-cd: Do not access completed requests in the irq handler
authorBorislav Petkov <bp@alien8.de>
Tue, 6 Jul 2010 04:23:52 +0000 (21:23 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 9 Aug 2010 10:17:49 +0000 (03:17 -0700)
commit110712828365ccafcc61a7f4db44c31ed4cf8793
treef4c5014dab0cd1e66881eeb86286cacc0203e4fa
parent45d7f32c7a43cbb9592886d38190e379e2eb2226
ide-cd: Do not access completed requests in the irq handler

ide_cd_error_cmd() can complete an erroneous request with leftover
buffers. Signal this with its return value so that the request is not
accessed after its completion in the irq handler and we oops.

Cc: <stable@kernel.org> # 32.x 33.x 34.x
Signed-off-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ide/ide-cd.c