Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=d0f29485686d9d1c4f31240953a742d5dd4fdb72
Commit:     d0f29485686d9d1c4f31240953a742d5dd4fdb72
Parent:     7a801184fa480e11e6431f184a5bdf31f63326fb
Author:     Brian King <[EMAIL PROTECTED]>
AuthorDate: Wed Jan 17 12:32:28 2007 -0600
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Wed Jan 24 02:04:34 2007 -0500

    libata: Initialize qc->pad_len
    
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
---
 include/linux/libata.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/include/linux/libata.h b/include/linux/libata.h
index 65d3187..f7f268e 100644
--- 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);
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to