This patch deploys the use of the PG_sensitive page allocator flag
within the mac80211 driver, more specifically the handling of WEP
RC4 keys during encryption and decryption.
Signed-off-by: Larry H. <[email protected]>
---
net/mac80211/wep.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Index: linux-2.6/net/mac80211/wep.c
===================================================================
--- linux-2.6.orig/net/mac80211/wep.c
+++ linux-2.6/net/mac80211/wep.c
@@ -155,7 +155,7 @@ int ieee80211_wep_encrypt(struct ieee802
return -1;
klen = 3 + key->conf.keylen;
- rc4key = kmalloc(klen, GFP_ATOMIC);
+ rc4key = kmalloc(klen, GFP_ATOMIC | GFP_SENSITIVE);
if (!rc4key)
return -1;
@@ -243,7 +243,7 @@ int ieee80211_wep_decrypt(struct ieee802
klen = 3 + key->conf.keylen;
- rc4key = kmalloc(klen, GFP_ATOMIC);
+ rc4key = kmalloc(klen, GFP_ATOMIC | GFP_SENSITIVE);
if (!rc4key)
return -1;
"Larry H." <[email protected]> writes:
> This patch deploys the use of the PG_sensitive page allocator flag
> within the mac80211 driver, more specifically the handling of WEP
> RC4 keys during encryption and decryption.
Why? Always explain the reason for the change in commit log. For
example, I have no idea why you want to change this.
> Signed-off-by: Larry H. <[email protected]>
Please add your last name.
--
Kalle Valo