Skip to content

Commit

Permalink
[PATCH] net/ieee80211/ieee80211_tx.c: swapped memset arguments
Browse files Browse the repository at this point in the history
Fix swapped memset() arguments in net/ieee80211/ieee80211_tx.c found by
Maciej Soltysiak.

Patch by Jesper Juhl.

Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
  • Loading branch information
Adrian Bunk authored and Jeff Garzik committed May 16, 2005
1 parent b453872 commit 0a989b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ieee80211/ieee80211_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ struct ieee80211_txb *ieee80211_alloc_txb(int nr_frags, int txb_size,
if (!txb)
return NULL;

memset(txb, sizeof(struct ieee80211_txb), 0);
memset(txb, 0, sizeof(struct ieee80211_txb));
txb->nr_frags = nr_frags;
txb->frag_size = txb_size;

Expand Down

0 comments on commit 0a989b2

Please sign in to comment.