git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[NETFILTER]: x_tables: struct xt_table_info diet
[safe/jmp/linux-2.6]
/
net
/
netfilter
/
x_tables.c
diff --git
a/net/netfilter/x_tables.c
b/net/netfilter/x_tables.c
index
b6160e4
..
07bb465
100644
(file)
--- a/
net/netfilter/x_tables.c
+++ b/
net/netfilter/x_tables.c
@@
-499,7
+499,7
@@
struct xt_table_info *xt_alloc_table_info(unsigned int size)
if ((SMP_ALIGN(size) >> PAGE_SHIFT) + 2 > num_physpages)
return NULL;
- newinfo = kzalloc(
sizeof(struct xt_table_info)
, GFP_KERNEL);
+ newinfo = kzalloc(
XT_TABLE_INFO_SZ
, GFP_KERNEL);
if (!newinfo)
return NULL;