]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
libata: fix EH action overwriting in ata_eh_reset()
authorTejun Heo <tj@kernel.org>
Thu, 31 Jul 2008 07:07:04 +0000 (16:07 +0900)
committerJeff Garzik <jgarzik@redhat.com>
Fri, 22 Aug 2008 06:19:39 +0000 (02:19 -0400)
commita674050e068a2919908730279f0b731ae6d2e005
treeaa0fe8d065233fc32e458a861a50b20271f99555
parenteb3a55a9f43f0f8e770c2abf70e65bdda2d5ff1e
libata: fix EH action overwriting in ata_eh_reset()

ehc->i.action got accidentally overwritten to ATA_EH_HARD/SOFTRESET in
ata_eh_reset().  The original intention was to clear reset action
which wasn't selected.  This can cause unexpected behavior when other
EH actions are scheduled together with reset.  Fix it.

Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-eh.c