linux-stable/drivers/net/wireless/broadcom/brcm80211/brcmfmac
Jason A. Donenfeld e8a533cbeb treewide: use get_random_u32_inclusive() when possible
These cases were done with this Coccinelle:

@@
expression H;
expression L;
@@
- (get_random_u32_below(H) + L)
+ get_random_u32_inclusive(L, H + L - 1)

@@
expression H;
expression L;
expression E;
@@
  get_random_u32_inclusive(L,
  H
- + E
- - E
  )

@@
expression H;
expression L;
expression E;
@@
  get_random_u32_inclusive(L,
  H
- - E
- + E
  )

@@
expression H;
expression L;
expression E;
expression F;
@@
  get_random_u32_inclusive(L,
  H
- - E
  + F
- + E
  )

@@
expression H;
expression L;
expression E;
expression F;
@@
  get_random_u32_inclusive(L,
  H
- + E
  + F
- - E
  )

And then subsequently cleaned up by hand, with several automatic cases
rejected if it didn't make sense contextually.

Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> # for infiniband
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2022-11-18 02:18:02 +01:00
..
Kconfig
Makefile
bcdc.c brcmfmac: increase dcmd maximum buffer size 2022-09-27 09:09:07 +03:00
bcdc.h
bcmsdh.c wifi: brcmfmac: add 43439 SDIO ids and initialization 2022-09-07 11:01:15 +03:00
btcoex.c
btcoex.h
bus.h wifi: brcmfmac: pcie/sdio/usb: Get CLM blob via standard firmware mechanism 2022-09-19 12:59:33 +03:00
cfg80211.c brcmfmac: Remove the call to "dtim_assoc" IOVAR 2022-09-27 09:09:07 +03:00
cfg80211.h
chip.c brcmfmac: Support 89459 pcie 2022-09-27 09:09:06 +03:00
chip.h
common.c wifi: brcmfmac: pcie/sdio/usb: Get CLM blob via standard firmware mechanism 2022-09-19 12:59:33 +03:00
common.h wifi: brcmfmac: of: Fetch Apple properties 2022-09-19 12:59:34 +03:00
commonring.c
commonring.h
core.c wifi: brcmfmac: fix use-after-free bug in brcmf_netdev_start_xmit() 2022-09-07 10:57:10 +03:00
core.h
debug.c
debug.h
dmi.c wifi: brcmfmac: Add DMI nvram filename quirk for Chuwi Hi8 Pro tablet 2022-09-07 10:58:46 +03:00
feature.c wifi: brcmfmac: add 43439 SDIO ids and initialization 2022-09-07 11:01:15 +03:00
feature.h
firmware.c wifi: brcmfmac: firmware: Allow platform to override macaddr 2022-09-19 12:59:34 +03:00
firmware.h wifi: brcmfmac: firmware: Support passing in multiple board_types 2022-09-19 12:59:33 +03:00
flowring.c wifi: brcmfmac: fix scheduling while atomic issue when deleting flowring 2022-08-10 08:47:22 +03:00
flowring.h
fweh.c wifi: brcmfmac: Fix potential buffer overflow in brcmf_fweh_event_worker() 2022-11-01 13:14:20 +02:00
fweh.h
fwil.c
fwil.h
fwil_types.h brcmfmac: increase default max WOWL patterns to 16 2022-09-27 09:09:06 +03:00
fwsignal.c wifi: move from strlcpy with unused retval to strscpy 2022-09-02 11:47:22 +03:00
fwsignal.h wifi: brcmfmac: Fix to add skb free for TIM update info when tx is completed 2022-08-10 08:47:22 +03:00
msgbuf.c wifi: brcmfmac: fix scheduling while atomic issue when deleting flowring 2022-08-10 08:47:22 +03:00
msgbuf.h wifi: brcmfmac: msgbuf: Increase RX ring sizes to 1024 2022-09-19 12:59:34 +03:00
of.c wifi: brcmfmac: of: Fetch Apple properties 2022-09-19 12:59:34 +03:00
of.h
p2p.c treewide: use get_random_u32_inclusive() when possible 2022-11-18 02:18:02 +01:00
p2p.h
pcie.c brcmfmac: Support 89459 pcie 2022-09-27 09:09:06 +03:00
pcie.h
pno.c treewide: use get_random_{u8,u16}() when possible, part 2 2022-10-11 17:42:58 -06:00
pno.h
proto.c
proto.h
sdio.c wifi: brcmfmac: firmware: Support passing in multiple board_types 2022-09-19 12:59:33 +03:00
sdio.h wifi: brcmfmac: pcie/sdio/usb: Get CLM blob via standard firmware mechanism 2022-09-19 12:59:33 +03:00
tracepoint.c
tracepoint.h
usb.c wifi: brcmfmac: pcie/sdio/usb: Get CLM blob via standard firmware mechanism 2022-09-19 12:59:33 +03:00
usb.h
vendor.c
vendor.h
xtlv.c
xtlv.h