Skip to content

Commit

Permalink
libata: ensure NCQ error result taskfile is fully initialized
Browse files Browse the repository at this point in the history
before returning it via qc->result_tf.

Cc: stable@kernel.org
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
  • Loading branch information
Jeff Garzik authored and Jeff Garzik committed Apr 23, 2010
1 parent 4c44f30 commit a09bf4c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/ata/libata-eh.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit a09bf4c

Please sign in to comment.