mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
netfilter: xtables: make use of xt_request_find_target
Signed-off-by: Jan Engelhardt <[email protected]>
This commit is contained in:
parent
ff67e4e42b
commit
d2a7b6bad2
6 changed files with 29 additions and 52 deletions
|
|
@ -46,8 +46,8 @@ static int ipt_init_target(struct ipt_entry_target *t, char *table, unsigned int
|
|||
|
||||
target = xt_request_find_target(AF_INET, t->u.user.name,
|
||||
t->u.user.revision);
|
||||
if (!target)
|
||||
return -ENOENT;
|
||||
if (IS_ERR(target))
|
||||
return PTR_ERR(target);
|
||||
|
||||
t->u.kernel.target = target;
|
||||
par.table = table;
|
||||
|
|
|
|||
Loading…
Reference in a new issue