mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-14 17:35:42 +00:00
[PATCH] ieee80211: kmalloc+memset -> kzalloc cleanups
kmalloc+memset -> kzalloc cleanups in ieee80211_crypt_tkip Signed-off-by: Zhu Yi <yi.zhu@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
7bd6436604
commit
8aa914b747
@ -80,10 +80,9 @@ static void *ieee80211_tkip_init(int key_idx)
|
|||||||
{
|
{
|
||||||
struct ieee80211_tkip_data *priv;
|
struct ieee80211_tkip_data *priv;
|
||||||
|
|
||||||
priv = kmalloc(sizeof(*priv), GFP_ATOMIC);
|
priv = kzalloc(sizeof(*priv), GFP_ATOMIC);
|
||||||
if (priv == NULL)
|
if (priv == NULL)
|
||||||
goto fail;
|
goto fail;
|
||||||
memset(priv, 0, sizeof(*priv));
|
|
||||||
|
|
||||||
priv->key_idx = key_idx;
|
priv->key_idx = key_idx;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user