]> 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:30:48 +0000 (13:30 -0700)
commit8a4ddef0916fea7b0dae2ae5b5fc287029e2208e
tree6c41be094437fc9bb379dd4a29b9b461f4b86a15
parent3821841da74077e09f22e9245a98a7e79016fbd1
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