diff options
author | Jeff Garzik <jeff@garzik.org> | 2010-04-22 21:59:13 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-05-12 14:57:00 -0700 |
commit | 00752c01d2ef9c60e043ef01f4af987846815dae (patch) | |
tree | 56b7939b09451c5a5d6c0d8776ca4bc1c15970b1 /drivers/ata | |
parent | 03f7b5c5020942f14e83ec2eb2bd89134f7f3919 (diff) |
libata: ensure NCQ error result taskfile is fully initialized before returning it via qc->result_tf.
commit a09bf4cd53b8ab000197ef81f15d50f29ecf973c upstream.
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/ata')
-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 c85992ba8df..e30b9e74794 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c @@ -1619,6 +1619,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 " |