diff options
author | Simon Wunderlich <simon.wunderlich@s2003.tu-chemnitz.de> | 2012-07-01 22:51:55 +0200 |
---|---|---|
committer | Antonio Quartulli <ordex@autistici.org> | 2012-08-23 14:02:46 +0200 |
commit | 624463079e0af455a2d70d2a59b9e2f6b5827aea (patch) | |
tree | 2ca06ceb55ad048e233fba6473f4c0244b034f62 /net/batman-adv/translation-table.c | |
parent | batman-adv: fix typos in comments (diff) | |
download | linux-624463079e0af455a2d70d2a59b9e2f6b5827aea.tar.xz linux-624463079e0af455a2d70d2a59b9e2f6b5827aea.zip |
batman-adv: check batadv_orig_hash_add_if() return code
If this call fails, some of the orig_nodes spaces may have been
resized for the increased number of interface, and some may not.
If we would just continue with the larger number of interfaces,
this would lead to access to not allocated memory later.
We better check the return code, and don't add the interface if
no memory is available. OTOH, keeping some of the orig_nodes
with too much memory allocated should hurt no one (except for
a few too many bytes allocated).
Signed-off-by: Simon Wunderlich <siwu@hrz.tu-chemnitz.de>
Signed-off-by: Antonio Quartulli <ordex@autistici.org>
Diffstat (limited to 'net/batman-adv/translation-table.c')
0 files changed, 0 insertions, 0 deletions