projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
treewide: kmalloc() -> kmalloc_array()
[linux-block.git]
/
net
/
netfilter
/
x_tables.c
diff --git
a/net/netfilter/x_tables.c
b/net/netfilter/x_tables.c
index df9ab71b0ed95a73e0e16443087507b91709c80d..d0d8397c95889f5b947def5ba90b62ac6b1bcaa7 100644
(file)
--- a/
net/netfilter/x_tables.c
+++ b/
net/netfilter/x_tables.c
@@
-1904,7
+1904,7
@@
static int __init xt_init(void)
seqcount_init(&per_cpu(xt_recseq, i));
}
- xt = kmalloc
(sizeof(struct xt_af) * NFPROTO_NUMPROTO
, GFP_KERNEL);
+ xt = kmalloc
_array(NFPROTO_NUMPROTO, sizeof(struct xt_af)
, GFP_KERNEL);
if (!xt)
return -ENOMEM;