]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: add sanity check when removing global tts
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
Wed, 19 Oct 2011 08:28:26 +0000 (10:28 +0200)
committerMarek Lindner <lindner_marek@yahoo.de>
Tue, 25 Oct 2011 12:23:04 +0000 (14:23 +0200)
commit9e0363c689be0d71cdba17fa75e451103b03df61
tree4088b0603c38b7244904aa7022f9833fba38ce9e
parent627a9a4ab4e2b22fa09f06c16793cc8ba4636984
batman-adv: add sanity check when removing global tts

After removing the batman-adv module, the hash may be already gone
when tt_global_del_orig() tries to clean the hash. This patch adds
a sanity check to avoid this.

Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Tested-by: Alexey Fisher <bug-track@fisher-privat.net>
Signed-off-by: Marek Lindner <lindner_marek@yahoo.de>
net/batman-adv/translation-table.c