diff --git a/net/ipv4/fou.c b/net/ipv4/fou.c index c8db62718e5f97a51feeba3177fd375a0c745519..ad0ee827a0c0ad81cb2f9d523ac49e833c9a82b7 100644 --- a/net/ipv4/fou.c +++ b/net/ipv4/fou.c @@ -605,8 +605,11 @@ static int fou_nl_cmd_add_port(struct sk_buff *skb, struct genl_info *info) static int fou_nl_cmd_rm_port(struct sk_buff *skb, struct genl_info *info) { struct fou_cfg cfg; + int err; - parse_nl_config(info, &cfg); + err = parse_nl_config(info, &cfg); + if (err) + return err; return fou_destroy(&init_net, &cfg); }