]> 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:27:19 +0000 (13:27 -0700)
commitfc20cc6e266d46f389da4e4132aade253cc3adb4
treed6f41c021d2409593b85aca3b9cb0d4b24ffa21e
parentce8be3193f61757a1e58f82b13d21828ec18089c
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