batman-adv: check return value for hash_add()
authorSimon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de>
Wed, 2 Nov 2011 19:26:45 +0000 (20:26 +0100)
committerSven Eckelmann <sven@narfation.org>
Sun, 20 Nov 2011 12:08:36 +0000 (13:08 +0100)
if hash_add() fails, we should remove the structure to avoid memory
leaks.

Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Acked-by: Antonio Quartulli <ordex@autistici.org>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
net/batman-adv/translation-table.c

Simple merge