aboutsummaryrefslogtreecommitdiffstats
path: root/net/bridge
diff options
context:
space:
mode:
authorJan Engelhardt <jengelh@medozas.de>2009-07-10 13:27:47 -0400
committerJan Engelhardt <jengelh@medozas.de>2010-03-25 10:02:19 -0400
commitfd0ec0e6216baea854465bbdb177f2d1b2ccaf22 (patch)
tree47a935d96deae38aa0a030039e303b071a7803e0 /net/bridge
parentd2a7b6bad2c38e41eddb0b24d03627d9e7aa3f7b (diff)
netfilter: xtables: consolidate code into xt_request_find_match
Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
Diffstat (limited to 'net/bridge')
-rw-r--r--net/bridge/netfilter/ebtables.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/net/bridge/netfilter/ebtables.c b/net/bridge/netfilter/ebtables.c
index 6d3b256d2f61..c41f3fad0587 100644
--- a/net/bridge/netfilter/ebtables.c
+++ b/net/bridge/netfilter/ebtables.c
@@ -361,12 +361,9 @@ ebt_check_match(struct ebt_entry_match *m, struct xt_mtchk_param *par,
361 left - sizeof(struct ebt_entry_match) < m->match_size) 361 left - sizeof(struct ebt_entry_match) < m->match_size)
362 return -EINVAL; 362 return -EINVAL;
363 363
364 match = try_then_request_module(xt_find_match(NFPROTO_BRIDGE, 364 match = xt_request_find_match(NFPROTO_BRIDGE, m->u.name, 0);
365 m->u.name, 0), "ebt_%s", m->u.name);
366 if (IS_ERR(match)) 365 if (IS_ERR(match))
367 return PTR_ERR(match); 366 return PTR_ERR(match);
368 if (match == NULL)
369 return -ENOENT;
370 m->u.match = match; 367 m->u.match = match;
371 368
372 par->match = match; 369 par->match = match;