Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 265979
b: refs/heads/master
c: 2461615
h: refs/heads/master
i:
  265977: bedd770
  265975: da77e29
v: v3
  • Loading branch information
Joe Perches authored and John W. Linville committed Sep 13, 2011
1 parent 739942a commit c381c07
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 14 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: 246c0812049f92109ab9771e34480a2ce816f005
refs/heads/master: 24616152b1d184864370c5ea21f8fdbd5a90d58d
2 changes: 0 additions & 2 deletions trunk/net/wireless/lib80211_crypt_ccmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ static void *lib80211_ccmp_init(int key_idx)

priv->tfm = crypto_alloc_cipher("aes", 0, CRYPTO_ALG_ASYNC);
if (IS_ERR(priv->tfm)) {
printk(KERN_DEBUG "lib80211_crypt_ccmp: could not allocate "
"crypto API aes\n");
priv->tfm = NULL;
goto fail;
}
Expand Down
4 changes: 0 additions & 4 deletions trunk/net/wireless/lib80211_crypt_tkip.c
Original file line number Diff line number Diff line change
Expand Up @@ -101,31 +101,27 @@ static void *lib80211_tkip_init(int key_idx)
priv->tx_tfm_arc4 = crypto_alloc_blkcipher("ecb(arc4)", 0,
CRYPTO_ALG_ASYNC);
if (IS_ERR(priv->tx_tfm_arc4)) {
printk(KERN_DEBUG pr_fmt("could not allocate crypto API arc4\n"));
priv->tx_tfm_arc4 = NULL;
goto fail;
}

priv->tx_tfm_michael = crypto_alloc_hash("michael_mic", 0,
CRYPTO_ALG_ASYNC);
if (IS_ERR(priv->tx_tfm_michael)) {
printk(KERN_DEBUG pr_fmt("could not allocate crypto API michael_mic\n"));
priv->tx_tfm_michael = NULL;
goto fail;
}

priv->rx_tfm_arc4 = crypto_alloc_blkcipher("ecb(arc4)", 0,
CRYPTO_ALG_ASYNC);
if (IS_ERR(priv->rx_tfm_arc4)) {
printk(KERN_DEBUG pr_fmt("could not allocate crypto API arc4\n"));
priv->rx_tfm_arc4 = NULL;
goto fail;
}

priv->rx_tfm_michael = crypto_alloc_hash("michael_mic", 0,
CRYPTO_ALG_ASYNC);
if (IS_ERR(priv->rx_tfm_michael)) {
printk(KERN_DEBUG pr_fmt("could not allocate crypto API michael_mic\n"));
priv->rx_tfm_michael = NULL;
goto fail;
}
Expand Down
4 changes: 0 additions & 4 deletions trunk/net/wireless/lib80211_crypt_wep.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,16 +50,12 @@ static void *lib80211_wep_init(int keyidx)

priv->tx_tfm = crypto_alloc_blkcipher("ecb(arc4)", 0, CRYPTO_ALG_ASYNC);
if (IS_ERR(priv->tx_tfm)) {
printk(KERN_DEBUG "lib80211_crypt_wep: could not allocate "
"crypto API arc4\n");
priv->tx_tfm = NULL;
goto fail;
}

priv->rx_tfm = crypto_alloc_blkcipher("ecb(arc4)", 0, CRYPTO_ALG_ASYNC);
if (IS_ERR(priv->rx_tfm)) {
printk(KERN_DEBUG "lib80211_crypt_wep: could not allocate "
"crypto API arc4\n");
priv->rx_tfm = NULL;
goto fail;
}
Expand Down
5 changes: 2 additions & 3 deletions trunk/net/wireless/util.c
Original file line number Diff line number Diff line change
Expand Up @@ -513,10 +513,9 @@ int ieee80211_data_from_8023(struct sk_buff *skb, const u8 *addr,
if (head_need)
skb_orphan(skb);

if (pskb_expand_head(skb, head_need, 0, GFP_ATOMIC)) {
pr_err("failed to reallocate Tx buffer\n");
if (pskb_expand_head(skb, head_need, 0, GFP_ATOMIC))
return -ENOMEM;
}

skb->truesize += head_need;
}

Expand Down

0 comments on commit c381c07

Please sign in to comment.