mac80211: fix unaligned access in mesh table hash function
authorFelix Fietkau <nbd@nbd.name>
Wed, 13 Mar 2019 17:54:27 +0000 (18:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 16 May 2019 17:43:41 +0000 (19:43 +0200)
commit7e0642ec73e0b26b00f3e570266a21639058aa6f
tree19bd41ca1154c51deeba2ee435570dae69a0e6d6
parentee734a2a39b6633248a066ab0a8dffdaa6085b8a
mac80211: fix unaligned access in mesh table hash function

[ Upstream commit 40586e3fc400c00c11151804dcdc93f8c831c808 ]

The pointer to the last four bytes of the address is not guaranteed to be
aligned, so we need to use __get_unaligned_cpu32 here

Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/mesh_pathtbl.c