X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=blobdiff_plain;f=drivers%2Fnet%2Fveth.c;h=b907398314300454f14fc5e7627f77d7db233b7a;hp=ef883e97cee08a557fd3dcc2546535c1ca487372;hb=HEAD;hpb=e25ba0ce039d1c5cae0b0057e4b9e228dc6744bd diff --git a/drivers/net/veth.c b/drivers/net/veth.c index ef883e97cee0..b90739831430 100644 --- a/drivers/net/veth.c +++ b/drivers/net/veth.c @@ -423,7 +423,9 @@ static void veth_dellink(struct net_device *dev, struct list_head *head) unregister_netdevice_queue(peer, head); } -static const struct nla_policy veth_policy[VETH_INFO_MAX + 1]; +static const struct nla_policy veth_policy[VETH_INFO_MAX + 1] = { + [VETH_INFO_PEER] = { .len = sizeof(struct ifinfomsg) }, +}; static struct rtnl_link_ops veth_link_ops = { .kind = DRV_NAME,