On 29 December 2015 at 14:02, Rafał Miłecki <zaj...@gmail.com> wrote:
> @@ -595,6 +614,33 @@ swconfig_parse_ports(struct sk_buff *msg, struct nlattr 
> *head,
>  }
>
>  static int
> +swconfig_parse_link(struct sk_buff *msg, struct nlattr *nla,
> +                   struct switch_port_link *link)
> +{
> +       struct nlattr *tb[SWITCH_LINK_ATTR_MAX + 1];
> +
> +       if (nla_parse_nested(tb, SWITCH_LINK_ATTR_MAX, nla, link_policy))
> +               return -EINVAL;
> +
> +       if (!tb[SWITCH_PORT_ID])
> +               return -EINVAL;

Invalid check, copy & paste mistake, drop it.
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to