]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit17d703ab479d051128f7c5b55594d1e4609b1539
tree078ec7637a69b5731b099c5d6b6d907e82d8bea1
parent3fa4a444e1058b776ba70496ba6d9088a03b3534
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: 0052229a8f12 ("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