diff options
author | Jeff Garzik <jeff@garzik.org> | 2010-04-22 21:59:13 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@redhat.com> | 2010-04-22 21:59:13 -0400 |
commit | a09bf4cd53b8ab000197ef81f15d50f29ecf973c (patch) | |
tree | 541b102b5145690addaa72d76f83b8f79a337ee1 /drivers | |
parent | 4c44f309cd396c18b096d31f03126824c685dbe2 (diff) |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | 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 9e18cc9be0d3..228740f356c9 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) | |||
1628 | } | 1628 | } |
1629 | 1629 | ||
1630 | /* okay, this error is ours */ | 1630 | /* okay, this error is ours */ |
1631 | memset(&tf, 0, sizeof(tf)); | ||
1631 | rc = ata_eh_read_log_10h(dev, &tag, &tf); | 1632 | rc = ata_eh_read_log_10h(dev, &tag, &tf); |
1632 | if (rc) { | 1633 | if (rc) { |
1633 | ata_link_printk(link, KERN_ERR, "failed to read log page 10h " | 1634 | ata_link_printk(link, KERN_ERR, "failed to read log page 10h " |