projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c44f30
)
libata: ensure NCQ error result taskfile is fully initialized
author
Jeff Garzik
<jeff@garzik.org>
Fri, 23 Apr 2010 01:59:13 +0000
(21:59 -0400)
committer
Jeff Garzik
<jgarzik@redhat.com>
Fri, 23 Apr 2010 01:59:13 +0000
(21:59 -0400)
before returning it via qc->result_tf.
Cc: stable@kernel.org
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/libata-eh.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ata/libata-eh.c
b/drivers/ata/libata-eh.c
index 9e18cc9be0d37f910345582a180dc4909ad34abb..228740f356c961ef3768411a349d146a950c3c4f 100644
(file)
--- 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 "