]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[NET_SCHED]: act_ipt: fix regression in ipt action
authorPatrick McHardy <kaber@trash.net>
Fri, 2 Feb 2007 08:40:36 +0000 (00:40 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Feb 2007 08:40:36 +0000 (00:40 -0800)
commit239a87c87660d3b97a467a661eec927f0dfa9891
tree105c2ef26a16c75ad36cb04a28b6bdeb317c8810
parente34efe3b100d0fbdf053128956c3dd0bc68754d6
[NET_SCHED]: act_ipt: fix regression in ipt action

The x_tables patch broke target module autoloading in the ipt action
by replacing the ipt_find_target call (which does autoloading) by
xt_find_target (which doesn't do autoloading). Additionally xt_find_target
may return ERR_PTR values in case of an error, which are not handled.

Use xt_request_find_target, which does both autoloading and ERR_PTR
handling properly. Also don't forget to drop the target module reference
again when xt_check_target fails.

Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/act_ipt.c