Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 215311
b: refs/heads/master
c: 730bd83
h: refs/heads/master
i:
  215309: e87aa86
  215307: a841c50
  215303: b34043f
  215295: 55b3d53
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Oct 11, 2010
1 parent 1e2fe9e commit 389ff26
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cc2858c987f41286e059ee777c3bc09f7b7c19f6
refs/heads/master: 730bd83b036e72b0134352ca27e76ea08475fbf1
8 changes: 1 addition & 7 deletions trunk/net/mac80211/wep.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ static int ieee80211_wep_decrypt(struct ieee80211_local *local,
struct ieee80211_key *key)
{
u32 klen;
u8 *rc4key;
u8 rc4key[3 + WLAN_KEY_LEN_WEP104];
u8 keyidx;
struct ieee80211_hdr *hdr = (struct ieee80211_hdr *)skb->data;
unsigned int hdrlen;
Expand All @@ -245,10 +245,6 @@ static int ieee80211_wep_decrypt(struct ieee80211_local *local,

klen = 3 + key->conf.keylen;

rc4key = kmalloc(klen, GFP_ATOMIC);
if (!rc4key)
return -1;

/* Prepend 24-bit IV to RC4 key */
memcpy(rc4key, skb->data + hdrlen, 3);

Expand All @@ -260,8 +256,6 @@ static int ieee80211_wep_decrypt(struct ieee80211_local *local,
len))
ret = -1;

kfree(rc4key);

/* Trim ICV */
skb_trim(skb, skb->len - WEP_ICV_LEN);

Expand Down

0 comments on commit 389ff26

Please sign in to comment.