aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/rtnetlink.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2015-07-23 03:41:16 -0400
committerDavid S. Miller <davem@davemloft.net>2015-07-23 03:41:16 -0400
commitc5e40ee287db61a79af1746954ee03ebbf1ff8a3 (patch)
tree007da00e75e9b84766ac4868421705300e1e2e14 /net/core/rtnetlink.c
parent052831879945be0d9fad2216b127147c565ec1b1 (diff)
parentc5dfd654d0ec0a28fe81e7bd4d4fd984a9855e09 (diff)
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts: net/bridge/br_mdb.c br_mdb.c conflict was a function call being removed to fix a bug in 'net' but whose signature was changed in 'net-next'. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/rtnetlink.c')
-rw-r--r--net/core/rtnetlink.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index 5fb4af20c6dd..788ceed39463 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -1808,10 +1808,13 @@ static int do_setlink(const struct sk_buff *skb,
1808 goto errout; 1808 goto errout;
1809 1809
1810 nla_for_each_nested(attr, tb[IFLA_VF_PORTS], rem) { 1810 nla_for_each_nested(attr, tb[IFLA_VF_PORTS], rem) {
1811 if (nla_type(attr) != IFLA_VF_PORT) 1811 if (nla_type(attr) != IFLA_VF_PORT ||
1812 continue; 1812 nla_len(attr) < NLA_HDRLEN) {
1813 err = nla_parse_nested(port, IFLA_PORT_MAX, 1813 err = -EINVAL;
1814 attr, ifla_port_policy); 1814 goto errout;
1815 }
1816 err = nla_parse_nested(port, IFLA_PORT_MAX, attr,
1817 ifla_port_policy);
1815 if (err < 0) 1818 if (err < 0)
1816 goto errout; 1819 goto errout;
1817 if (!port[IFLA_PORT_VF]) { 1820 if (!port[IFLA_PORT_VF]) {