diff options
author | David S. Miller <davem@davemloft.net> | 2008-07-29 21:51:00 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-29 21:51:00 -0700 |
commit | e93dc4891df93d7efa59d861fdcbb529a1819343 (patch) | |
tree | 545d95bc78c76d44b22bf2590c033311f44c0616 /net/mac80211/wep.c | |
parent | 6e86841d05f371b5b9b86ce76c02aaee83352298 (diff) | |
parent | 56a6d13dfd49d90d72a1a962246206719dd9d143 (diff) | |
download | linux-stable-e93dc4891df93d7efa59d861fdcbb529a1819343.tar.gz |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6
Diffstat (limited to 'net/mac80211/wep.c')
-rw-r--r-- | net/mac80211/wep.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/wep.c b/net/mac80211/wep.c index 872d2fcd1a5b..5c2bf0a3d4db 100644 --- a/net/mac80211/wep.c +++ b/net/mac80211/wep.c @@ -31,13 +31,13 @@ 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)) - return -ENOMEM; + 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); - return -ENOMEM; + return PTR_ERR(local->wep_rx_tfm); } return 0; |