git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[SK_BUFF]: Introduce skb_copy_from_linear_data{_offset}
[pandora-kernel.git]
/
net
/
ieee80211
/
ieee80211_crypt_wep.c
diff --git
a/net/ieee80211/ieee80211_crypt_wep.c
b/net/ieee80211/ieee80211_crypt_wep.c
index
ec6d885
..
4eb3507
100644
(file)
--- a/
net/ieee80211/ieee80211_crypt_wep.c
+++ b/
net/ieee80211/ieee80211_crypt_wep.c
@@
-152,7
+152,7
@@
static int prism2_wep_encrypt(struct sk_buff *skb, int hdr_len, void *priv)
return -1;
/* Copy the IV into the first 3 bytes of the key */
-
memcpy(key, skb->data + hdr_len
, 3);
+
skb_copy_from_linear_data_offset(skb, hdr_len, key
, 3);
/* Copy rest of the WEP key (the secret part) */
memcpy(key + 3, wep->key, wep->key_len);