diff options
author | David Woodhouse <dwmw2@infradead.org> | 2007-12-06 07:38:31 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-01-28 18:06:06 -0500 |
commit | 6228c0aea544f5292977e6b27cd231a4ea137a62 (patch) | |
tree | 383a6bd632b6b7b3e993167059a54afa096476bd /drivers | |
parent | ad9de29130599d4be3467932643797da3b9869f6 (diff) |
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 <dwmw2@infradead.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | 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 4fc3e4b56d0e..7097dcf7abc8 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, | |||
2072 | /* Set sequence number, clean result, move to buffer */ | 2072 | /* Set sequence number, clean result, move to buffer */ |
2073 | adapter->seqnum++; | 2073 | adapter->seqnum++; |
2074 | cmdptr->command = cpu_to_le16(command); | 2074 | cmdptr->command = cpu_to_le16(command); |
2075 | cmdptr->size = cmd_size + S_DS_GEN; | 2075 | cmdptr->size = cpu_to_le16(cmd_size + S_DS_GEN); |
2076 | cmdptr->seqnum = cpu_to_le16(adapter->seqnum); | 2076 | cmdptr->seqnum = cpu_to_le16(adapter->seqnum); |
2077 | cmdptr->result = 0; | 2077 | cmdptr->result = 0; |
2078 | memcpy(cmdptr->cmdresp, cmd, cmd_size); | 2078 | memcpy(cmdptr->cmdresp, cmd, cmd_size); |