[PATCH nf-next 09/10] netfilter: ebtables: use GFP_KERNEL_ACCOUNT
Pablo Neira Ayuso <[email protected]>
| Newsgroups | gmane.comp.security.firewalls.netfilter.devel |
|---|---|
| Message-ID | <[email protected]> |
GFP_KERNEL_ACCOUNT is preferred these days for memcg, replace GFP_KERNEL by GFP_KERNEL_ACCOUNT. Use GFP_KERNEL_ACCOUNT to allocate ebtables template hooks. Signed-off-by: Pablo Neira Ayuso <[email protected]> --- net/bridge/netfilter/ebtables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c index 0bf541936f60..64b8f6f98211 100644 --- a/net/bridge/netfilter/ebtables.c +++ b/net/bridge/netfilter/ebtables.c @@ -1304,7 +1304,7 @@ int ebt_register_template(const struct ebt_table *t, int (*table_init)(struct ne } } - tmpl = kzalloc_obj(*tmpl); + tmpl = kzalloc_obj(*tmpl, GFP_KERNEL_ACCOUNT); if (!tmpl) { mutex_unlock(&ebt_mutex); return -ENOMEM; -- 2.47.3