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)
commit6e8014947d6469df1566e9e253805557c5c0e4e0
tree4088b0603c38b7244904aa7022f9833fba38ce9e
parent531027fcddbcf81c9937dd04f08a7e8f11fd47d2
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