]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: fix removing neigh_ifinfo
authorSimon Wunderlich <simon@open-mesh.com>
Wed, 26 Mar 2014 14:46:24 +0000 (15:46 +0100)
committerAntonio Quartulli <antonio@meshcoding.com>
Sun, 11 May 2014 07:10:58 +0000 (09:10 +0200)
commitc02e7edc11093d6d8964592ff4480af486622b06
tree99ec51096000ac8cdcd3c5dddf88edebf63bf52b
parent24c2152a80435a5741e7cf800eea7d9ee33dfe33
batman-adv: fix removing neigh_ifinfo

When an interface is removed separately, all neighbors need to be
checked if they have a neigh_ifinfo structure for that particular
interface. If that is the case, remove that ifinfo so any references to
a hard interface can be freed.

This is a regression introduced by
bc4faacdc5ccece2224b18d34801b183156570da
("batman-adv: split tq information in neigh_node struct")

Reported-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Simon Wunderlich <simon@open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
net/batman-adv/originator.c