]> git.baikalelectronics.ru Git - kernel.git/commit
rtnetlink: fix the wrong minimal dump size getting from rtnl_calcit()
authorZhang Shengju <zhangshengju@cmss.chinamobile.com>
Tue, 22 Nov 2016 06:14:28 +0000 (14:14 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Nov 2016 01:18:36 +0000 (20:18 -0500)
commit784c8a29e632367e75b1a2474078b693ec709c0c
tree8e8802881d7ea5a749faf4ea97e81adae6dca0bd
parent0168f95c0a789ff271a78dc31f2905a6348cb1b3
rtnetlink: fix the wrong minimal dump size getting from rtnl_calcit()

For RT netlink, calcit() function should return the minimal size for
netlink dump message. This will make sure that dump message for every
network device can be stored.

Currently, rtnl_calcit() function doesn't account the size of header of
netlink message, this patch will fix it.

Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c