summaryrefslogtreecommitdiffstats
path: root/net/core
diff options
context:
space:
mode:
authorStefan Gula <steweg@gmail.com>2012-01-26 11:01:06 +0000
committerDavid S. Miller <davem@davemloft.net>2012-01-26 16:35:57 -0500
commitf18da14565819ba43b8321237e2426a2914cc2ef (patch)
tree263689dd9f9b39e6995c32e13ac725d1153a5641 /net/core
parentf2b3ee9e4200b32d113b1bd3c93f9a836c97357c (diff)
downloadblackbird-op-linux-f18da14565819ba43b8321237e2426a2914cc2ef.tar.gz
blackbird-op-linux-f18da14565819ba43b8321237e2426a2914cc2ef.zip
net: RTNETLINK adjusting values of min_ifinfo_dump_size
Setting link parameters on a netdevice changes the value of if_nlmsg_size(), therefore it is necessary to recalculate min_ifinfo_dump_size. Signed-off-by: Stefan Gula <steweg@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core')
-rw-r--r--net/core/rtnetlink.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index f16444bc6cbb..65aebd450027 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -1509,6 +1509,9 @@ errout:
if (send_addr_notify)
call_netdevice_notifiers(NETDEV_CHANGEADDR, dev);
+ min_ifinfo_dump_size = max_t(u16, if_nlmsg_size(dev),
+ min_ifinfo_dump_size);
+
return err;
}
OpenPOWER on IntegriCloud