mbox series

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

Message ID cover.1617223928.git.gustavoars@kernel.org
Headers show
Series wl3501_cs: Fix out-of-bounds warnings | expand

Message

Gustavo A. R. Silva March 31, 2021, 9:14 p.m. UTC
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

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 |  6 +++---
 2 files changed, 19 insertions(+), 15 deletions(-)