Explorar el Código

[PATCH] net/ieee80211/ieee80211_tx.c: swapped memset arguments

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>
Adrian Bunk hace 20 años
padre
commit
0a989b24fd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      net/ieee80211/ieee80211_tx.c

+ 1 - 1
net/ieee80211/ieee80211_tx.c

@@ -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;