projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1907e5
)
libcxgb: replace vmalloc and memset with vzalloc
author
YueHaibing
<
[email protected]
>
Thu, 19 Jul 2018 14:18:27 +0000
(22:18 +0800)
committer
David S. Miller
<
[email protected]
>
Sat, 21 Jul 2018 23:32:59 +0000
(16:32 -0700)
Use vzalloc instead of the vmalloc, memset combo
Signed-off-by: YueHaibing <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
b/drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
index 0ed1616423711d226e2433f6c0c5ccd683e589b6..74849be5f004f59552892cf642a9b02efb393ac7 100644
(file)
--- a/
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
+++ b/
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
@@
-412,12
+412,10
@@
int cxgbi_ppm_init(void **ppm_pp, struct net_device *ndev,
ppmax * (sizeof(struct cxgbi_ppod_data)) +
ppod_bmap_size * sizeof(unsigned long);
- ppm = v
m
alloc(alloc_sz);
+ ppm = v
z
alloc(alloc_sz);
if (!ppm)
goto release_ppm_pool;
- memset(ppm, 0, alloc_sz);
-
ppm->ppod_bmap = (unsigned long *)(&ppm->ppod_data[ppmax]);
if ((ppod_bmap_size >> 3) > (ppmax - ppmax_pool)) {