diff options
author | Stefan Gula <steweg@gmail.com> | 2012-01-26 12:01:06 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-01-26 22:35:57 +0100 |
commit | f18da14565819ba43b8321237e2426a2914cc2ef (patch) | |
tree | 263689dd9f9b39e6995c32e13ac725d1153a5641 | |
parent | ipv6: Fix ip_gre lockless xmits. (diff) | |
download | linux-f18da14565819ba43b8321237e2426a2914cc2ef.tar.xz 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>
-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 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; } |