]> git.baikalelectronics.ru Git - kernel.git/commit
rtnl: reset calcit fptr in rtnl_unregister()
authorMathias Krause <minipli@googlemail.com>
Mon, 7 Nov 2016 22:22:19 +0000 (23:22 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 Nov 2016 01:18:19 +0000 (20:18 -0500)
commit20971e77c6276caf146b7e420d70b4b3c7963435
tree1e1561944b988201162ec32c3541b26c906fad3c
parent35c01cfe97b37ab9ee5d85fb633cb7e0a687e9d3
rtnl: reset calcit fptr in rtnl_unregister()

To avoid having dangling function pointers left behind, reset calcit in
rtnl_unregister(), too.

This is no issue so far, as only the rtnl core registers a netlink
handler with a calcit hook which won't be unregistered, but may become
one if new code makes use of the calcit hook.

Fixes: 98c93fb764cc ("rtnetlink: Compute and store minimum ifinfo...")
Cc: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Cc: Greg Rose <gregory.v.rose@intel.com>
Signed-off-by: Mathias Krause <minipli@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/rtnetlink.c