From: Antonio Quartulli Date: Sat, 15 Feb 2014 01:17:20 +0000 (+0100) Subject: batman-adv: avoid double free when orig_node initialization fails X-Git-Tag: v3.14-rc4~30^2~7^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5a5cb8cab526af2f6cbe9715f8ca843192f0d81;p=pandora-kernel.git batman-adv: avoid double free when orig_node initialization fails In the failure path of the orig_node initialization routine the orig_node->bat_iv.bcast_own field is free'd twice: first in batadv_iv_ogm_orig_get() and then later in batadv_orig_node_free_rcu(). Fix it by removing the kfree in batadv_iv_ogm_orig_get(). Signed-off-by: Antonio Quartulli Signed-off-by: Marek Lindner --- Reading git-diff-tree failed