diff options
Diffstat (limited to 'net/sched')
-rw-r--r-- | net/sched/act_ipt.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sched/act_ipt.c b/net/sched/act_ipt.c index 45a3143b8629..d8c9310da6e5 100644 --- a/net/sched/act_ipt.c +++ b/net/sched/act_ipt.c | |||
@@ -69,7 +69,6 @@ static int ipt_init_target(struct ipt_entry_target *t, char *table, unsigned int | |||
69 | if (t->u.kernel.target->checkentry | 69 | if (t->u.kernel.target->checkentry |
70 | && !t->u.kernel.target->checkentry(table, NULL, | 70 | && !t->u.kernel.target->checkentry(table, NULL, |
71 | t->u.kernel.target, t->data, | 71 | t->u.kernel.target, t->data, |
72 | t->u.target_size - sizeof(*t), | ||
73 | hook)) { | 72 | hook)) { |
74 | module_put(t->u.kernel.target->me); | 73 | module_put(t->u.kernel.target->me); |
75 | ret = -EINVAL; | 74 | ret = -EINVAL; |
@@ -81,8 +80,7 @@ static int ipt_init_target(struct ipt_entry_target *t, char *table, unsigned int | |||
81 | static void ipt_destroy_target(struct ipt_entry_target *t) | 80 | static void ipt_destroy_target(struct ipt_entry_target *t) |
82 | { | 81 | { |
83 | if (t->u.kernel.target->destroy) | 82 | if (t->u.kernel.target->destroy) |
84 | t->u.kernel.target->destroy(t->u.kernel.target, t->data, | 83 | t->u.kernel.target->destroy(t->u.kernel.target, t->data); |
85 | t->u.target_size - sizeof(*t)); | ||
86 | module_put(t->u.kernel.target->me); | 84 | module_put(t->u.kernel.target->me); |
87 | } | 85 | } |
88 | 86 | ||