Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=09360d5408cb641abff0f32a172a3332f02e8e88
Commit:     09360d5408cb641abff0f32a172a3332f02e8e88
Parent:     7244d545c123ff33a3a5bff7fcb96a07778c32d1
Author:     Eli Cohen <[EMAIL PROTECTED]>
AuthorDate: Wed May 30 13:14:31 2007 +0300
Committer:  Roland Dreier <[EMAIL PROTECTED]>
CommitDate: Thu Jun 7 11:51:57 2007 -0700

    mlx4_core: Fix CQ context layout
    
    The reserved6 field should be 64 bits, not just 16 bits.  Without
    this, the structure does not match the hardware layout on 32-bit
    architectures: the db_rec_addr field ends up at offset 52 instead of
    offset 56.  The bug slipped by because the alignment of __be64 members
    ends up putting it in the right place on x86-64.
    
    Signed-off-by: Eli Cohen <[EMAIL PROTECTED]>
    Signed-off-by: Roland Dreier <[EMAIL PROTECTED]>
---
 drivers/net/mlx4/cq.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/mlx4/cq.c b/drivers/net/mlx4/cq.c
index 437d78a..39253d0 100644
--- a/drivers/net/mlx4/cq.c
+++ b/drivers/net/mlx4/cq.c
@@ -61,7 +61,7 @@ struct mlx4_cq_context {
        __be32                  solicit_producer_index;
        __be32                  consumer_index;
        __be32                  producer_index;
-       u8                      reserved6[2];
+       u32                     reserved6[2];
        __be64                  db_rec_addr;
 };
 
-
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