diff options
| author | Haoyu Li <[email protected]> | 2024-11-23 17:25:00 +0000 |
|---|---|---|
| committer | Johannes Berg <[email protected]> | 2024-12-03 10:27:24 +0000 |
| commit | 496db69fd860570145f7c266b31f3af85fca5b00 (patch) | |
| tree | b29bc7486b00cec5d484a71c20541ce296925360 /net/unix/af_unix.c | |
| parent | wifi: mac80211: fix mbss changed flags corruption on 32 bit systems (diff) | |
| download | kernel-496db69fd860570145f7c266b31f3af85fca5b00.tar.gz kernel-496db69fd860570145f7c266b31f3af85fca5b00.zip | |
wifi: mac80211: init cnt before accessing elem in ieee80211_copy_mbssid_beacon
With the new __counted_by annocation in cfg80211_mbssid_elems,
the "cnt" struct member must be set before accessing the "elem"
array. Failing to do so will trigger a runtime warning when enabling
CONFIG_UBSAN_BOUNDS and CONFIG_FORTIFY_SOURCE.
Fixes: c14679d7005a ("wifi: cfg80211: Annotate struct cfg80211_mbssid_elems with __counted_by")
Signed-off-by: Haoyu Li <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
