aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ipw2100.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ipw2100.c')
-rw-r--r--drivers/net/wireless/ipw2100.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/wireless/ipw2100.c b/drivers/net/wireless/ipw2100.c
index 76841cb8301b..877ac514aa07 100644
--- a/drivers/net/wireless/ipw2100.c
+++ b/drivers/net/wireless/ipw2100.c
@@ -6058,13 +6058,11 @@ static int ipw2100_wpa_set_encryption(struct net_device *dev,
6058 6058
6059 ieee80211_crypt_delayed_deinit(ieee, crypt); 6059 ieee80211_crypt_delayed_deinit(ieee, crypt);
6060 6060
6061 new_crypt = (struct ieee80211_crypt_data *) 6061 new_crypt = kzalloc(sizeof(struct ieee80211_crypt_data), GFP_KERNEL);
6062 kmalloc(sizeof(struct ieee80211_crypt_data), GFP_KERNEL);
6063 if (new_crypt == NULL) { 6062 if (new_crypt == NULL) {
6064 ret = -ENOMEM; 6063 ret = -ENOMEM;
6065 goto done; 6064 goto done;
6066 } 6065 }
6067 memset(new_crypt, 0, sizeof(struct ieee80211_crypt_data));
6068 new_crypt->ops = ops; 6066 new_crypt->ops = ops;
6069 if (new_crypt->ops && try_module_get(new_crypt->ops->owner)) 6067 if (new_crypt->ops && try_module_get(new_crypt->ops->owner))
6070 new_crypt->priv = 6068 new_crypt->priv =