[ovs-dev] [netlink v4 27/52] datapath: Change userspace vport interface to use Netlink attributes.

Jesse Gross jesse at nicira.com
Fri Jan 21 02:56:36 UTC 2011


On Thu, Jan 20, 2011 at 6:03 PM, Ben Pfaff <blp at nicira.com> wrote:
> diff --git a/datapath/datapath.c b/datapath/datapath.c
> index b13efb7..928eebd 100644
> --- a/datapath/datapath.c
> +++ b/datapath/datapath.c
> @@ -1378,7 +1378,7 @@ static struct sk_buff *copy_vport_from_user(struct odp_vport __user *uodp_vport,
>        if (err)
>                goto error_free_skb;
>
> -       err = VERIFY_NUL_STRING(a[ODPPT_NAME]);
> +       err = VERIFY_NUL_STRING(a[ODPPT_NAME], IFNAMSIZ - 1);
>        if (err)
>                goto error_free_skb;

Also, I'm guessing that this came from another patch.  It looks fine
but it's clearly not related to the tunneling code.




More information about the dev mailing list