From: Scott Feldman Date: Fri, 28 May 2010 10:42:18 +0000 (-0700) Subject: netlink: bug fix: don't overrun skbs on vf_port dump X-Git-Tag: v2.6.35-rc1~24^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8ca9418350eccd5dd2659931807c1901224dd638;p=pandora-kernel.git netlink: bug fix: don't overrun skbs on vf_port dump Noticed by Patrick McHardy: was continuing to fill skb after a nla_put_failure, ignoring the size calculated by upper layer. Now, return -EMSGSIZE on any overruns, but also allow netdev to fail ndo_get_vf_port with error other than -EMSGSIZE, thus unwinding nest. Signed-off-by: Scott Feldman Signed-off-by: David S. Miller --- Reading git-diff-tree failed