|
@@ -370,7 +370,11 @@ ebt_check_match(struct ebt_entry_match *m, struct xt_mtchk_param *par,
|
|
left - sizeof(struct ebt_entry_match) < m->match_size)
|
|
left - sizeof(struct ebt_entry_match) < m->match_size)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
- match = xt_request_find_match(NFPROTO_BRIDGE, m->u.name, 0);
|
|
|
|
|
|
+ match = xt_find_match(NFPROTO_BRIDGE, m->u.name, 0);
|
|
|
|
+ if (IS_ERR(match) || match->family != NFPROTO_BRIDGE) {
|
|
|
|
+ request_module("ebt_%s", m->u.name);
|
|
|
|
+ match = xt_find_match(NFPROTO_BRIDGE, m->u.name, 0);
|
|
|
|
+ }
|
|
if (IS_ERR(match))
|
|
if (IS_ERR(match))
|
|
return PTR_ERR(match);
|
|
return PTR_ERR(match);
|
|
m->u.match = match;
|
|
m->u.match = match;
|