From: Jiri Benc Date: Fri, 8 Aug 2014 14:44:32 +0000 (+0200) Subject: rtnetlink: fix VF info size X-Git-Tag: omap-for-v3.17/fixes-against-rc2~76^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=945a36761fd7877660f630bbdeb4ff9ff80d1935;p=pandora-kernel.git rtnetlink: fix VF info size Commit 1d8faf48c74b8 ("net/core: Add VF link state control") added new attribute to IFLA_VF_INFO group in rtnl_fill_ifinfo but did not adjust size of the allocated memory in if_nlmsg_size/rtnl_vfinfo_size. As the result, we may trigger warnings in rtnl_getlink and similar functions when many VF links are enabled, as the information does not fit into the allocated skb. Fixes: 1d8faf48c74b8 ("net/core: Add VF link state control") Reported-by: Yulong Pei Signed-off-by: Jiri Benc Signed-off-by: David S. Miller --- Reading git-diff-tree failed