From: Antonio Quartulli Date: Mon, 27 Jan 2014 11:23:28 +0000 (+0100) Subject: batman-adv: fix TT-TVLV parsing on OGM reception X-Git-Tag: v3.13.6~109 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=658720abdccb8768b0db2b944b61325a5c5da3b0;p=thirdparty%2Fkernel%2Fstable.git batman-adv: fix TT-TVLV parsing on OGM reception [ Upstream commit e889241f45f9cecbc84a6ffed577083ab52e62ee ] When accessing a TT-TVLV container in the OGM RX path the variable pointing to the list of changes to apply is altered by mistake. This makes the TT component read data at the wrong position in the OGM packet buffer. Fix it by removing the bogus pointer alteration. Signed-off-by: Antonio Quartulli Signed-off-by: Marek Lindner Signed-off-by: Greg Kroah-Hartman --- diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c index ff625fedbc5ee..5275921047b50 100644 --- a/net/batman-adv/translation-table.c +++ b/net/batman-adv/translation-table.c @@ -3204,7 +3204,6 @@ static void batadv_tt_update_orig(struct batadv_priv *bat_priv, spin_lock_bh(&orig_node->tt_lock); - tt_change = (struct batadv_tvlv_tt_change *)tt_buff; batadv_tt_update_changes(bat_priv, orig_node, tt_num_changes, ttvn, tt_change);