]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
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)
commit80b3f58cf416770ae89b30734d252d641a56d289
tree2ec071472dd768a3e867fe12e003c7bc3026eee5
parent697f25314a923f75deef0d3b10991dd103f59d93
batman-adv: check return value for hash_add()

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