[PATCH v2 0/2][next] wl3501_cs: Fix out-of-bounds warnings

From: Gustavo A. R. Silva
Date: Wed Mar 31 2021 - 18:44:45 EST


Fix the a couple of out-of-bounds warnings by making the code
a bit more structured.

This helps with the ongoing efforts to enable -Warray-bounds and
avoid confusing the compiler.

Link: https://github.com/KSPP/linux/issues/109

Changes in v2:
- Update changelog text in patch 1/2.
- Replace a couple of magic numbers with new variable sig_addr_len.

Gustavo A. R. Silva (2):
wl3501_cs: Fix out-of-bounds warning in wl3501_send_pkt
wl3501_cs: Fix out-of-bounds warning in wl3501_mgmt_join

drivers/net/wireless/wl3501.h | 28 ++++++++++++++++------------
drivers/net/wireless/wl3501_cs.c | 11 ++++++-----
2 files changed, 22 insertions(+), 17 deletions(-)

--
2.27.0