From: Stefan Gula Date: Thu, 26 Jan 2012 11:01:06 +0000 (+0000) Subject: net: RTNETLINK adjusting values of min_ifinfo_dump_size X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f18da14565819ba43b8321237e2426a2914cc2ef;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: David S. Miller --- 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; }