|
@@ -513,11 +513,13 @@ find_check_entry(struct arpt_entry *e, const char *name, unsigned int size)
|
|
|
{
|
|
|
struct xt_entry_target *t;
|
|
|
struct xt_target *target;
|
|
|
+ unsigned long pcnt;
|
|
|
int ret;
|
|
|
|
|
|
- e->counters.pcnt = xt_percpu_counter_alloc();
|
|
|
- if (IS_ERR_VALUE(e->counters.pcnt))
|
|
|
+ pcnt = xt_percpu_counter_alloc();
|
|
|
+ if (IS_ERR_VALUE(pcnt))
|
|
|
return -ENOMEM;
|
|
|
+ e->counters.pcnt = pcnt;
|
|
|
|
|
|
t = arpt_get_target(e);
|
|
|
target = xt_request_find_target(NFPROTO_ARP, t->u.user.name,
|