projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bd6436
)
[PATCH] ieee80211: kmalloc+memset -> kzalloc cleanups
author
Zhu Yi
<yi.zhu@intel.com>
Thu, 19 Jan 2006 08:22:07 +0000
(16:22 +0800)
committer
John W. Linville
<linville@tuxdriver.com>
Fri, 27 Jan 2006 22:08:06 +0000
(17:08 -0500)
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>
net/ieee80211/ieee80211_crypt_tkip.c
patch
|
blob
|
history
diff --git
a/net/ieee80211/ieee80211_crypt_tkip.c
b/net/ieee80211/ieee80211_crypt_tkip.c
index
e098832
..
de56a47
100644
(file)
--- a/
net/ieee80211/ieee80211_crypt_tkip.c
+++ b/
net/ieee80211/ieee80211_crypt_tkip.c
@@
-80,10
+80,9
@@
static void *ieee80211_tkip_init(int key_idx)
{
struct ieee80211_tkip_data *priv;
- priv = k
m
alloc(sizeof(*priv), GFP_ATOMIC);
+ priv = k
z
alloc(sizeof(*priv), GFP_ATOMIC);
if (priv == NULL)
goto fail;
- memset(priv, 0, sizeof(*priv));
priv->key_idx = key_idx;