diff options
author | Simon Wunderlich <sw@simonwunderlich.de> | 2014-02-08 16:45:06 +0100 |
---|---|---|
committer | Antonio Quartulli <antonio@meshcoding.com> | 2014-02-17 17:17:01 +0100 |
commit | b2262df7fcf2c395eca564df83238e931d88d7bf (patch) | |
tree | b4d4923237b668091ff9d6b459f575d087c4e7d3 /net/batman-adv/icmp_socket.h | |
parent | 08bf0ed29c7ded45c477d08618220dd200c3524a (diff) | |
download | linux-b2262df7fcf2c395eca564df83238e931d88d7bf.tar.bz2 |
batman-adv: fix potential orig_node reference leak
Since batadv_orig_node_new() sets the refcount to two, assuming that
the calling function will use a reference for putting the orig_node into
a hash or similar, both references must be freed if initialization of
the orig_node fails. Otherwise that object may be leaked in that error
case.
Reported-by: Antonio Quartulli <antonio@meshcoding.com>
Signed-off-by: Simon Wunderlich <sw@simonwunderlich.de>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
Diffstat (limited to 'net/batman-adv/icmp_socket.h')
0 files changed, 0 insertions, 0 deletions