summaryrefslogtreecommitdiffstats
path: root/drivers/atm
diff options
context:
space:
mode:
authorLinus Lüssing <ll@simonwunderlich.de>2020-08-27 17:34:48 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-10-01 13:14:51 +0200
commit8d6cd745526a5e15c80211a2ba4114150dad2f27 (patch)
treee751b5c2d04e708d346c2691bdb5ae6547bb47b8 /drivers/atm
parent9f59089ee02d932b486a0b57dc5f53d682dbb575 (diff)
downloadlinux-stable-8d6cd745526a5e15c80211a2ba4114150dad2f27.tar.gz
linux-stable-8d6cd745526a5e15c80211a2ba4114150dad2f27.tar.bz2
linux-stable-8d6cd745526a5e15c80211a2ba4114150dad2f27.zip
batman-adv: bla: fix type misuse for backbone_gw hash indexing
[ Upstream commit 097930e85f90f252c44dc0d084598265dd44ca48 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/atm')
0 files changed, 0 insertions, 0 deletions