Skip to content

Commit

Permalink
Merge master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Browse files Browse the repository at this point in the history
* master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6:
  [NET_SCHED]: act_ipt: fix regression in ipt action
  • Loading branch information
Linus Torvalds committed Feb 2, 2007
2 parents 583243c + 239a87c commit 6cdd12a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions net/sched/act_ipt.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,19 @@ static int ipt_init_target(struct ipt_entry_target *t, char *table, unsigned int
struct ipt_target *target;
int ret = 0;

target = xt_find_target(AF_INET, t->u.user.name, t->u.user.revision);
target = xt_request_find_target(AF_INET, t->u.user.name,
t->u.user.revision);
if (!target)
return -ENOENT;

t->u.kernel.target = target;

ret = xt_check_target(target, AF_INET, t->u.target_size - sizeof(*t),
table, hook, 0, 0);
if (ret)
if (ret) {
module_put(t->u.kernel.target->me);
return ret;

}
if (t->u.kernel.target->checkentry
&& !t->u.kernel.target->checkentry(table, NULL,
t->u.kernel.target, t->data,
Expand Down

0 comments on commit 6cdd12a

Please sign in to comment.