diff options
author | Linus Lüssing <ll@simonwunderlich.de> | 2020-08-27 17:34:48 +0200 |
---|---|---|
committer | Simon Wunderlich <sw@simonwunderlich.de> | 2020-08-27 17:41:45 +0200 |
commit | 097930e85f90f252c44dc0d084598265dd44ca48 (patch) | |
tree | e7bce462255ddd298aa27b4b26aeefcb0df8c28a /tools/perf/scripts/python | |
parent | 279e89b2281af3b1a9f04906e157992c19c9f163 (diff) |
batman-adv: bla: fix type misuse for backbone_gw hash indexing
It seems that due to a copy & paste error the void pointer
in batadv_choose_backbone_gw() is cast to the wrong type.
Fixing this by using "struct batadv_bla_backbone_gw" instead of "struct
batadv_bla_claim" which better matches the caller's side.
For now it seems that we were lucky because the two structs both have
their orig/vid and addr/vid in the beginning. However I stumbled over
this issue when I was trying to add some debug variables in front of
"orig" in batadv_backbone_gw, which caused hash lookups to fail.
Fixes: 07568d0369f9 ("batman-adv: don't rely on positions in struct for hashing")
Signed-off-by: Linus Lüssing <ll@simonwunderlich.de>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions