projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[NET]: Conversions from kmalloc+memset to k(z|c)alloc.
[GitHub/mt8127/android_kernel_alcatel_ttab.git]
/
net
/
ieee80211
/
softmac
/
ieee80211softmac_io.c
diff --git
a/net/ieee80211/softmac/ieee80211softmac_io.c
b/net/ieee80211/softmac/ieee80211softmac_io.c
index 8cc8b20f5cda3529b7302141e0d7e48d751561fe..6ae5a1dc79564742f1bfd024ae9e2b37058fb4c0 100644
(file)
--- a/
net/ieee80211/softmac/ieee80211softmac_io.c
+++ b/
net/ieee80211/softmac/ieee80211softmac_io.c
@@
-96,8
+96,7
@@
ieee80211softmac_alloc_mgt(u32 size)
if(size > IEEE80211_DATA_LEN)
return NULL;
/* Allocate the frame */
- data = kmalloc(size, GFP_ATOMIC);
- memset(data, 0, size);
+ data = kzalloc(size, GFP_ATOMIC);
return data;
}