Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6228c0aea544f5292977e6b27cd231a4ea137a62
Commit:     6228c0aea544f5292977e6b27cd231a4ea137a62
Parent:     ad9de29130599d4be3467932643797da3b9869f6
Author:     David Woodhouse <[EMAIL PROTECTED]>
AuthorDate: Thu Dec 6 12:38:31 2007 +0000
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Mon Jan 28 15:06:06 2008 -0800

    libertas: Byteswap cmdptr->size in lbs_cmd()
    
    Bad Holger. Always test on big-endian machines, if it's little-endian
    you need to be swapping to/from.
    
    Signed-off-by: David Woodhouse <[EMAIL PROTECTED]>
    Signed-off-by: John W. Linville <[EMAIL PROTECTED]>
---
 drivers/net/wireless/libertas/cmd.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/wireless/libertas/cmd.c 
b/drivers/net/wireless/libertas/cmd.c
index 4fc3e4b..7097dcf 100644
--- a/drivers/net/wireless/libertas/cmd.c
+++ b/drivers/net/wireless/libertas/cmd.c
@@ -2072,7 +2072,7 @@ int lbs_cmd(struct lbs_private *priv,
        /* Set sequence number, clean result, move to buffer */
        adapter->seqnum++;
        cmdptr->command = cpu_to_le16(command);
-       cmdptr->size    = cmd_size + S_DS_GEN;
+       cmdptr->size    = cpu_to_le16(cmd_size + S_DS_GEN);
        cmdptr->seqnum = cpu_to_le16(adapter->seqnum);
        cmdptr->result = 0;
        memcpy(cmdptr->cmdresp, cmd, cmd_size);
-
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