Skip to content

Commit

Permalink
batman-adv: fix TT-TVLV parsing on OGM reception
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Marek Lindner <[email protected]>
  • Loading branch information
ordex committed Feb 17, 2014
1 parent 930cd6e commit e889241
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion net/batman-adv/translation-table.c
Original file line number Diff line number Diff line change
Expand Up @@ -3218,7 +3218,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);

Expand Down

0 comments on commit e889241

Please sign in to comment.