mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-17 23:34:24 +00:00
Although not reproduced in practice, these two cases may be considered by UBSAN as off-by-one errors. So fix them in the same way as in commita26a5107bc("wifi: cfg80211: fix UBSAN noise in cfg80211_wext_siwscan()"). Fixes:807f8a8c30("cfg80211/nl80211: add support for scheduled scans") Fixes:5ba63533bb("cfg80211: fix alignment problem in scan request") Signed-off-by: Dmitry Antipov <dmantipov@yandex.ru> Link: https://patch.msgid.link/20240909090806.1091956-1-dmantipov@yandex.ru Signed-off-by: Johannes Berg <johannes.berg@intel.com>