projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a80118
)
libata: Initialize qc->pad_len
author
Brian King
<brking@linux.vnet.ibm.com>
Wed, 17 Jan 2007 18:32:28 +0000
(12:32 -0600)
committer
Jeff Garzik
<jeff@garzik.org>
Wed, 24 Jan 2007 07:04:34 +0000
(
02:04
-0500)
Initialize qc->pad_len for each new command. This ensures
that pad_len is not set to a stale value for zero data
length commands.
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
include/linux/libata.h
patch
|
blob
|
history
diff --git
a/include/linux/libata.h
b/include/linux/libata.h
index 65d318746ac61321f38bbb883da319bef54ad090..f7f268e3874904d4de275ce6df87a54e4a518e37 100644
(file)
--- a/
include/linux/libata.h
+++ b/
include/linux/libata.h
@@
-1151,6
+1151,7
@@
static inline void ata_qc_reinit(struct ata_queued_cmd *qc)
qc->nbytes = qc->curbytes = 0;
qc->n_elem = 0;
qc->err_mask = 0;
+ qc->pad_len = 0;
ata_tf_init(qc->dev, &qc->tf);