diff options
author | John W. Linville <linville@tuxdriver.com> | 2012-11-21 12:57:56 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-11-21 12:57:56 -0500 |
commit | b3117494772d8f906625905c6e203af745ee3530 (patch) | |
tree | cc8960455f9e1f18d0939fddd0e96f349613f753 /net/mac80211/main.c | |
parent | e2ff0498409af6f2023f91aba07b281e5e87ee15 (diff) | |
parent | 400e020892a9a20eea5d2c9bce8bfb312075c4ba (diff) |
Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
Conflicts:
drivers/net/wireless/brcm80211/brcmfmac/wl_cfg80211.c
drivers/net/wireless/iwlwifi/pcie/tx.c
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 70e87600cacc..da2f41610125 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -925,8 +925,10 @@ int ieee80211_register_hw(struct ieee80211_hw *hw) | |||
925 | local->hw.wiphy->cipher_suites, | 925 | local->hw.wiphy->cipher_suites, |
926 | sizeof(u32) * local->hw.wiphy->n_cipher_suites, | 926 | sizeof(u32) * local->hw.wiphy->n_cipher_suites, |
927 | GFP_KERNEL); | 927 | GFP_KERNEL); |
928 | if (!suites) | 928 | if (!suites) { |
929 | return -ENOMEM; | 929 | result = -ENOMEM; |
930 | goto fail_wiphy_register; | ||
931 | } | ||
930 | for (r = 0; r < local->hw.wiphy->n_cipher_suites; r++) { | 932 | for (r = 0; r < local->hw.wiphy->n_cipher_suites; r++) { |
931 | u32 suite = local->hw.wiphy->cipher_suites[r]; | 933 | u32 suite = local->hw.wiphy->cipher_suites[r]; |
932 | if (suite == WLAN_CIPHER_SUITE_WEP40 || | 934 | if (suite == WLAN_CIPHER_SUITE_WEP40 || |