Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 203715
b: refs/heads/master
c: 088c872
h: refs/heads/master
i:
  203713: 98aa71b
  203711: f0af2da
v: v3
  • Loading branch information
John W. Linville committed Jul 16, 2010
1 parent ed8b170 commit 139953f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: 48d5548fc5e5ad79ca98a287b67f403834929739
refs/heads/master: 088c87262bbc39a01ebcd70817d35616785908b1
5 changes: 4 additions & 1 deletion trunk/net/mac80211/wep.c
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,16 @@ int ieee80211_wep_init(struct ieee80211_local *local)

local->wep_tx_tfm = crypto_alloc_blkcipher("ecb(arc4)", 0,
CRYPTO_ALG_ASYNC);
if (IS_ERR(local->wep_tx_tfm))
if (IS_ERR(local->wep_tx_tfm)) {
local->wep_rx_tfm = ERR_PTR(-EINVAL);
return PTR_ERR(local->wep_tx_tfm);
}

local->wep_rx_tfm = crypto_alloc_blkcipher("ecb(arc4)", 0,
CRYPTO_ALG_ASYNC);
if (IS_ERR(local->wep_rx_tfm)) {
crypto_free_blkcipher(local->wep_tx_tfm);
local->wep_tx_tfm = ERR_PTR(-EINVAL);
return PTR_ERR(local->wep_rx_tfm);
}

Expand Down

0 comments on commit 139953f

Please sign in to comment.