mac80211: mesh: fix potentially unaligned access
authorJohannes Berg <johannes.berg@intel.com>
Mon, 20 Sep 2021 13:40:05 +0000 (15:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Oct 2021 13:55:52 +0000 (15:55 +0200)
commit8576e72ac5d651c3ef41afc54b657bed7e9a69d7
tree22a9631960e0eab386bfb5d75541851747ea770a
parent1282bb00835ff79d2d9c023055d514df5b4de260
mac80211: mesh: fix potentially unaligned access

[ Upstream commit b9731062ce8afd35cf723bf3a8ad55d208f915a5 ]

The pointer here points directly into the frame, so the
access is potentially unaligned. Use get_unaligned_le16
to avoid that.

Fixes: 3f52b7e328c5 ("mac80211: mesh power save basics")
Link: https://lore.kernel.org/r/20210920154009.3110ff75be0c.Ib6a2ff9e9cc9bc6fca50fce631ec1ce725cc926b@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/mac80211/mesh_ps.c