|
@@ -660,12 +660,11 @@ find_check_match(struct ip6t_entry_match *m, struct xt_mtchk_param *par)
|
|
|
struct xt_match *match;
|
|
|
int ret;
|
|
|
|
|
|
- match = try_then_request_module(xt_find_match(AF_INET6, m->u.user.name,
|
|
|
- m->u.user.revision),
|
|
|
- "ip6t_%s", m->u.user.name);
|
|
|
- if (IS_ERR(match) || !match) {
|
|
|
+ match = xt_request_find_match(NFPROTO_IPV6, m->u.user.name,
|
|
|
+ m->u.user.revision);
|
|
|
+ if (IS_ERR(match)) {
|
|
|
duprintf("find_check_match: `%s' not found\n", m->u.user.name);
|
|
|
- return match ? PTR_ERR(match) : -ENOENT;
|
|
|
+ return PTR_ERR(match);
|
|
|
}
|
|
|
m->u.kernel.match = match;
|
|
|
|
|
@@ -1506,13 +1505,12 @@ compat_find_calc_match(struct ip6t_entry_match *m,
|
|
|
{
|
|
|
struct xt_match *match;
|
|
|
|
|
|
- match = try_then_request_module(xt_find_match(AF_INET6, m->u.user.name,
|
|
|
- m->u.user.revision),
|
|
|
- "ip6t_%s", m->u.user.name);
|
|
|
- if (IS_ERR(match) || !match) {
|
|
|
+ match = xt_request_find_match(NFPROTO_IPV6, m->u.user.name,
|
|
|
+ m->u.user.revision);
|
|
|
+ if (IS_ERR(match)) {
|
|
|
duprintf("compat_check_calc_match: `%s' not found\n",
|
|
|
m->u.user.name);
|
|
|
- return match ? PTR_ERR(match) : -ENOENT;
|
|
|
+ return PTR_ERR(match);
|
|
|
}
|
|
|
m->u.kernel.match = match;
|
|
|
*size += xt_compat_match_offset(match);
|