X-Git-Url: http://pilppa.org/gitweb/?a=blobdiff_plain;f=net%2Fieee80211%2Fieee80211_crypt.c;h=5ed0a98b2d7680ae2d3a8b169a4e5664842b0444;hb=d486dd1fb8573fad5b8dab61a7d1406116fd4baf;hp=cb71d794a7d1711af7289417738a823de830d6f9;hpb=b04a92e1601eb6df3a3b6599e7fb7ee021eef2cb;p=linux-2.6-omap-h63xx.git diff --git a/net/ieee80211/ieee80211_crypt.c b/net/ieee80211/ieee80211_crypt.c index cb71d794a7d..5ed0a98b2d7 100644 --- a/net/ieee80211/ieee80211_crypt.c +++ b/net/ieee80211/ieee80211_crypt.c @@ -110,11 +110,10 @@ int ieee80211_register_crypto_ops(struct ieee80211_crypto_ops *ops) unsigned long flags; struct ieee80211_crypto_alg *alg; - alg = kmalloc(sizeof(*alg), GFP_KERNEL); + alg = kzalloc(sizeof(*alg), GFP_KERNEL); if (alg == NULL) return -ENOMEM; - memset(alg, 0, sizeof(*alg)); alg->ops = ops; spin_lock_irqsave(&ieee80211_crypto_lock, flags);