diff options
| author | Haoyu Li <[email protected]> | 2024-12-03 15:20:49 +0000 |
|---|---|---|
| committer | Johannes Berg <[email protected]> | 2024-12-06 09:45:22 +0000 |
| commit | f1d3334d604cc32db63f6e2b3283011e02294e54 (patch) | |
| tree | 137714e49f5d5aa60d2d22e7cb951faacd39e1c4 /net/unix/af_unix.c | |
| parent | wifi: mac80211: fix station NSS capability initialization order (diff) | |
| download | kernel-f1d3334d604cc32db63f6e2b3283011e02294e54.tar.gz kernel-f1d3334d604cc32db63f6e2b3283011e02294e54.zip | |
wifi: cfg80211: sme: init n_channels before channels[] access
With the __counted_by annocation in cfg80211_scan_request struct,
the "n_channels" struct member must be set before accessing the
"channels" array. Failing to do so will trigger a runtime warning
when enabling CONFIG_UBSAN_BOUNDS and CONFIG_FORTIFY_SOURCE.
Fixes: e3eac9f32ec0 ("wifi: cfg80211: Annotate struct cfg80211_scan_request 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
