wifi: remove zero-length arrays
authorJohannes Berg <johannes.berg@intel.com>
Fri, 13 Jun 2025 22:30:37 +0000 (00:30 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 17 Jun 2025 12:29:19 +0000 (14:29 +0200)
commita85b8544d46390469b6ca72d6bfd3ecb7be985ff
tree84414ccf5700f9844caad74d52d271c72f06c69b
parent27605c8c0f69e319df156b471974e4e223035378
wifi: remove zero-length arrays

All of these are really meant to be variable-length, and
in the case of s1g_beacon it's actually accessed. Make that
one in particular, and a couple of others (that aren't used
as arrays now), actually variable.

Reported-by: syzbot+fd222bb38e916df26fa4@syzkaller.appspotmail.com
Fixes: 1e1f706fc2ce ("wifi: cfg80211/mac80211: correctly parse S1G beacon optional elements")
Link: https://patch.msgid.link/20250614003037.a3e82e882251.I2e8b58e56ff2a9f8b06c66f036578b7c1d4e4685@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
include/linux/ieee80211.h