libata: ensure NCQ error result taskfile is fully initialized

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Thursday, April 22, 2010 - 7:59 pm

Gitweb:     http://git.kernel.org/linus/a09bf4cd53b8ab000197ef81f15d50f29ecf973c
Commit:     a09bf4cd53b8ab000197ef81f15d50f29ecf973c
Parent:     4c44f309cd396c18b096d31f03126824c685dbe2
Author:     Jeff Garzik <jeff@garzik.org>
AuthorDate: Thu Apr 22 21:59:13 2010 -0400
Committer:  Jeff Garzik <jgarzik@redhat.com>
CommitDate: Thu Apr 22 21:59:13 2010 -0400

    libata: ensure NCQ error result taskfile is fully initialized
    before returning it via qc->result_tf.
    
    Cc: stable@kernel.org
    Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
---
 drivers/ata/libata-eh.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c
index 9e18cc9..228740f 100644
--- a/drivers/ata/libata-eh.c
+++ b/drivers/ata/libata-eh.c
@@ -1628,6 +1628,7 @@ void ata_eh_analyze_ncq_error(struct ata_link *link)
 	}
 
 	/* okay, this error is ours */
+	memset(&tf, 0, sizeof(tf));
 	rc = ata_eh_read_log_10h(dev, &tag, &tf);
 	if (rc) {
 		ata_link_printk(link, KERN_ERR, "failed to read log page 10h "
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
libata: ensure NCQ error result taskfile is fully initialized, Linux Kernel Mailing ..., (Thu Apr 22, 7:59 pm)