mac80211: mesh: fix potentially unaligned access
authorJohannes Berg <johannes.berg@intel.com>
Mon, 20 Sep 2021 13:40:05 +0000 (15:40 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Thu, 23 Sep 2021 11:25:09 +0000 (13:25 +0200)
commitb9731062ce8afd35cf723bf3a8ad55d208f915a5
tree078ec7637a69b5731b099c5d6b6d907e82d8bea1
parent13cb6d826e0ac0d144b0d48191ff1a111d32f0c6
mac80211: mesh: fix potentially unaligned access

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>
net/mac80211/mesh_ps.c