X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=drivers%2Fnet%2Fveth.c;h=b907398314300454f14fc5e7627f77d7db233b7a;hb=78e96c146124c1ebbd9387bc2d26185b262563b9;hp=5b23767ea817232a24b33a479f9b2014e895d1b6;hpb=051732bcbe3cff3fea04dc9042266562fe8b0859;p=pandora-kernel.git diff --git a/drivers/net/veth.c b/drivers/net/veth.c index 5b23767ea817..b90739831430 100644 --- a/drivers/net/veth.c +++ b/drivers/net/veth.c @@ -17,6 +17,7 @@ #include #include #include +#include #define DRV_NAME "veth" #define DRV_VERSION "1.0" @@ -422,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,