aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAntonio Quartulli <antonio@meshcoding.com>2014-01-27 06:23:28 -0500
committerAntonio Quartulli <antonio@meshcoding.com>2014-02-17 11:17:00 -0500
commite889241f45f9cecbc84a6ffed577083ab52e62ee (patch)
tree94aaf22aebc301628e55d173c3d226f85061e57e
parent930cd6e46eadce8b8ed2a232ee536e5fd286c152 (diff)
batman-adv: fix TT-TVLV parsing on OGM reception
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 <antonio@meshcoding.com> Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
-rw-r--r--net/batman-adv/translation-table.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c
index b6071f675a3e..beba13fbd10a 100644
--- a/net/batman-adv/translation-table.c
+++ b/net/batman-adv/translation-table.c
@@ -3218,7 +3218,6 @@ static void batadv_tt_update_orig(struct batadv_priv *bat_priv,
3218 3218
3219 spin_lock_bh(&orig_node->tt_lock); 3219 spin_lock_bh(&orig_node->tt_lock);
3220 3220
3221 tt_change = (struct batadv_tvlv_tt_change *)tt_buff;
3222 batadv_tt_update_changes(bat_priv, orig_node, tt_num_changes, 3221 batadv_tt_update_changes(bat_priv, orig_node, tt_num_changes,
3223 ttvn, tt_change); 3222 ttvn, tt_change);
3224 3223