]> git.kernelconcepts.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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Aug 2010 20:19:36 +0000 (13:19 -0700)
commite943138e4de074176e4c02909f4618cfd11a49d1
tree6e81bef75f289887de2f5c051294362f894618d2
parent20ae44fa9a6384c5340193a75def7ef8a2a380ec
ide-cd: Do not access completed requests in the irq handler

commit 110712828365ccafcc61a7f4db44c31ed4cf8793 upstream.

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.

Signed-off-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/ide/ide-cd.c