From: Tejun Heo Date: Sun, 2 Jul 2006 17:54:58 +0000 (+0900) Subject: [PATCH] libata: fix ehc->i.action setting in ata_eh_autopsy() X-Git-Tag: v2.6.18-rc1~3^2~15 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0662c58b3265f52f708a6d59476bc7862b01f9c0;p=platform%2Fkernel%2Flinux-stable.git [PATCH] libata: fix ehc->i.action setting in ata_eh_autopsy() ata_eh_autopsy() used to directly assign determined action mask to ehc->i.action thus overriding actions set by some of nested analyze functions. This patch makes ata_eh_autopsy() add action masks just as it's done in other places. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik --- diff --git a/drivers/scsi/libata-eh.c b/drivers/scsi/libata-eh.c index f2f29a8..4a670db 100644 --- a/drivers/scsi/libata-eh.c +++ b/drivers/scsi/libata-eh.c @@ -1346,7 +1346,7 @@ static void ata_eh_autopsy(struct ata_port *ap) /* record autopsy result */ ehc->i.dev = failed_dev; - ehc->i.action = action; + ehc->i.action |= action; DPRINTK("EXIT\n"); }