]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit709de13f0c532fe9c468c094aff069a725ed57fe
tree99ec51096000ac8cdcd3c5dddf88edebf63bf52b
parent7b955a9fc164487d7c51acb9787f6d1b01b35ef6
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
89652331c00f43574515059ecbf262d26d885717
("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