mirror of https://github.com/torvalds/linux.git
GCC 12 really doesn't like partial struct allocations:
drivers/net/wireless/broadcom/brcm80211/brcmfmac/cfg80211.c:2202:32: warning: array subscript ‘struct brcmf_ext_join_params_le[0]’ is partly outside array bounds of ‘void[70]’ [-Warray-bounds]
2202 | ext_join_params->scan_le.passive_time =
| ^~
brcmfmac is trying to save 2 bytes at the end by either allocating
or not allocating a channel member. Let's keep @join_params_size
the "right" size but kmalloc() the full structure.
Acked-by: Kalle Valo <kvalo@kernel.org>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| bcdc.c | ||
| bcdc.h | ||
| bcmsdh.c | ||
| btcoex.c | ||
| btcoex.h | ||
| bus.h | ||
| cfg80211.c | ||
| cfg80211.h | ||
| chip.c | ||
| chip.h | ||
| common.c | ||
| common.h | ||
| commonring.c | ||
| commonring.h | ||
| core.c | ||
| core.h | ||
| debug.c | ||
| debug.h | ||
| dmi.c | ||
| feature.c | ||
| feature.h | ||
| firmware.c | ||
| firmware.h | ||
| flowring.c | ||
| flowring.h | ||
| fweh.c | ||
| fweh.h | ||
| fwil.c | ||
| fwil.h | ||
| fwil_types.h | ||
| fwsignal.c | ||
| fwsignal.h | ||
| msgbuf.c | ||
| msgbuf.h | ||
| of.c | ||
| of.h | ||
| p2p.c | ||
| p2p.h | ||
| pcie.c | ||
| pcie.h | ||
| pno.c | ||
| pno.h | ||
| proto.c | ||
| proto.h | ||
| sdio.c | ||
| sdio.h | ||
| tracepoint.c | ||
| tracepoint.h | ||
| usb.c | ||
| usb.h | ||
| vendor.c | ||
| vendor.h | ||
| xtlv.c | ||
| xtlv.h | ||