summaryrefslogtreecommitdiffstats
path: root/net/dsa
diff options
context:
space:
mode:
authorAntonio Quartulli <antonio@open-mesh.com>2014-05-02 01:35:13 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-31 13:20:39 -0700
commit32eb568e09bfdf10bd90c8478e5a79b5f9f3c841 (patch)
tree3715c12508ff74eeeb7f067115ae588ee3d14777 /net/dsa
parente450a9b46e0d1c6d0b94a63d0d5fd4273d45de24 (diff)
downloadlinux-stable-32eb568e09bfdf10bd90c8478e5a79b5f9f3c841.tar.gz
linux-stable-32eb568e09bfdf10bd90c8478e5a79b5f9f3c841.tar.bz2
linux-stable-32eb568e09bfdf10bd90c8478e5a79b5f9f3c841.zip
batman-adv: increase orig refcount when storing ref in gw_node
[ Upstream commit 377fe0f968b30a1a714fab53a908061914f30e26 ] A pointer to the orig_node representing a bat-gateway is stored in the gw_node->orig_node member, but the refcount for such orig_node is never increased. This leads to memory faults when gw_node->orig_node is accessed and the originator has already been freed. Fix this by increasing the refcount on gw_node creation and decreasing it on gw_node free. Signed-off-by: Antonio Quartulli <antonio@open-mesh.com> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/dsa')
0 files changed, 0 insertions, 0 deletions