* [PATCH 1/1] mac80211: Tkip fix sparse endianity complain in tkip code
@ 2008-03-13 18:05 Tomas Winkler
2008-03-13 21:02 ` Johannes Berg
0 siblings, 1 reply; 4+ messages in thread
From: Tomas Winkler @ 2008-03-13 18:05 UTC (permalink / raw)
To: linville, johannes, reinette.chatre; +Cc: linux-wireless, Tomas Winkler
This patch fix wrong cast in tkip code
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
---
net/mac80211/tkip.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/mac80211/tkip.c b/net/mac80211/tkip.c
index f61f1dd..0ce2a84 100644
--- a/net/mac80211/tkip.c
+++ b/net/mac80211/tkip.c
@@ -118,7 +118,7 @@ static u8 *set_ext_iv(u8 *pos, u16 iv16)
static u8 *set_tkip_iv(u8 *pos, u32 iv32)
{
- *((u32 *)pos) = cpu_to_le32(iv32);
+ *((__le32 *)pos) = cpu_to_le32(iv32);
return pos + 4;
}
--
1.5.4.1
---------------------------------------------------------------------
Intel Israel (74) Limited
This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] mac80211: Tkip fix sparse endianity complain in tkip code
2008-03-13 18:05 [PATCH 1/1] mac80211: Tkip fix sparse endianity complain in tkip code Tomas Winkler
@ 2008-03-13 21:02 ` Johannes Berg
2008-03-13 23:57 ` Tomas Winkler
0 siblings, 1 reply; 4+ messages in thread
From: Johannes Berg @ 2008-03-13 21:02 UTC (permalink / raw)
To: Tomas Winkler; +Cc: linville, reinette.chatre, linux-wireless
[-- Attachment #1: Type: text/plain, Size: 785 bytes --]
On Thu, 2008-03-13 at 20:05 +0200, Tomas Winkler wrote:
> This patch fix wrong cast in tkip code
>
> Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
> ---
> net/mac80211/tkip.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/net/mac80211/tkip.c b/net/mac80211/tkip.c
> index f61f1dd..0ce2a84 100644
> --- a/net/mac80211/tkip.c
> +++ b/net/mac80211/tkip.c
> @@ -118,7 +118,7 @@ static u8 *set_ext_iv(u8 *pos, u16 iv16)
>
> static u8 *set_tkip_iv(u8 *pos, u32 iv32)
> {
> - *((u32 *)pos) = cpu_to_le32(iv32);
> + *((__le32 *)pos) = cpu_to_le32(iv32);
The patch introducing this code will be reverted because this is also
rather bad code since it's not known that "pos" is aligned to a
four-byte boundary.
johannes
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] mac80211: Tkip fix sparse endianity complain in tkip code
2008-03-13 21:02 ` Johannes Berg
@ 2008-03-13 23:57 ` Tomas Winkler
2008-03-14 1:29 ` John W. Linville
0 siblings, 1 reply; 4+ messages in thread
From: Tomas Winkler @ 2008-03-13 23:57 UTC (permalink / raw)
To: Johannes Berg; +Cc: linville, reinette.chatre, linux-wireless
On Thu, Mar 13, 2008 at 11:02 PM, Johannes Berg
<johannes@sipsolutions.net> wrote:
>
> On Thu, 2008-03-13 at 20:05 +0200, Tomas Winkler wrote:
> > This patch fix wrong cast in tkip code
> >
> > Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
> > ---
> > net/mac80211/tkip.c | 2 +-
> > 1 files changed, 1 insertions(+), 1 deletions(-)
> >
> > diff --git a/net/mac80211/tkip.c b/net/mac80211/tkip.c
> > index f61f1dd..0ce2a84 100644
> > --- a/net/mac80211/tkip.c
> > +++ b/net/mac80211/tkip.c
> > @@ -118,7 +118,7 @@ static u8 *set_ext_iv(u8 *pos, u16 iv16)
> >
> > static u8 *set_tkip_iv(u8 *pos, u32 iv32)
> > {
> > - *((u32 *)pos) = cpu_to_le32(iv32);
> > + *((__le32 *)pos) = cpu_to_le32(iv32);
>
> The patch introducing this code will be reverted because this is also
> rather bad code since it's not known that "pos" is aligned to a
> four-byte boundary.
Agree, actually I was puzzled it was even merged in after all these
discussions. Anyhow it sparsed into my eye so I put a patch on it.
>
> johannes
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH 1/1] mac80211: Tkip fix sparse endianity complain in tkip code
2008-03-13 23:57 ` Tomas Winkler
@ 2008-03-14 1:29 ` John W. Linville
0 siblings, 0 replies; 4+ messages in thread
From: John W. Linville @ 2008-03-14 1:29 UTC (permalink / raw)
To: Tomas Winkler; +Cc: Johannes Berg, reinette.chatre, linux-wireless
On Fri, Mar 14, 2008 at 01:57:39AM +0200, Tomas Winkler wrote:
> On Thu, Mar 13, 2008 at 11:02 PM, Johannes Berg
> <johannes@sipsolutions.net> wrote:
> > The patch introducing this code will be reverted because this is also
> > rather bad code since it's not known that "pos" is aligned to a
> > four-byte boundary.
>
> Agree, actually I was puzzled it was even merged in after all these
> discussions. Anyhow it sparsed into my eye so I put a patch on it.
The beauty of the wireless-testing tree is it gives me more freedom
to merge patches without being married to them. :-)
John
--
John W. Linville
linville@tuxdriver.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2008-03-14 1:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-13 18:05 [PATCH 1/1] mac80211: Tkip fix sparse endianity complain in tkip code Tomas Winkler
2008-03-13 21:02 ` Johannes Berg
2008-03-13 23:57 ` Tomas Winkler
2008-03-14 1:29 ` John W. Linville
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).