diff options
author | Stefan Gula <steweg@gmail.com> | 2012-01-26 11:01:06 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-01-26 16:35:57 -0500 |
commit | f18da14565819ba43b8321237e2426a2914cc2ef (patch) | |
tree | 263689dd9f9b39e6995c32e13ac725d1153a5641 | |
parent | f2b3ee9e4200b32d113b1bd3c93f9a836c97357c (diff) |
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>
-rw-r--r-- | net/core/rtnetlink.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index f16444bc6cb..65aebd45002 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; } |