linux-stable/drivers/net/wireless/intel/iwlwifi/mvm
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
..
Makefile
binding.c
coex.c wifi: mac80211: move interface config to new struct 2022-06-20 12:55:03 +02:00
constants.h
d3.c wifi: iwlwifi: mvm: d3: parse keys from wowlan info notification 2022-09-18 14:40:17 +03:00
debugfs-vif.c wifi: mac80211: move some future per-link data to bss_conf 2022-06-20 12:55:01 +02:00
debugfs.c wifi: mac80211: keep A-MSDU data in sta and per-link 2022-09-06 10:17:08 +02:00
debugfs.h
ftm-initiator.c wifi: iwlwifi: mvm: fix clang -Wformat warnings 2022-07-27 13:47:56 +03:00
ftm-responder.c wifi: mac80211: move some future per-link data to bss_conf 2022-06-20 12:55:01 +02:00
fw-api.h
fw.c iwlwifi: mvm: add OTP info in case of init failure 2022-05-18 12:54:08 +02:00
led.c
mac-ctxt.c treewide: use get_random_u32_inclusive() when possible 2022-11-18 02:18:02 +01:00
mac80211.c wireless-next patches for v6.1 2022-09-30 10:07:31 -07:00
mvm.h wifi: iwlwifi: Track scan_cmd allocation size explicitly 2022-09-28 09:43:58 +03:00
nvm.c
offloading.c wifi: mac80211: move interface config to new struct 2022-06-20 12:55:03 +02:00
ops.c wifi: iwlwifi: Track scan_cmd allocation size explicitly 2022-09-28 09:43:58 +03:00
phy-ctxt.c
power.c wifi: mac80211: move ps setting to vif config 2022-07-15 11:43:15 +02:00
quota.c wifi: mac80211: move interface config to new struct 2022-06-20 12:55:03 +02:00
rfi.c
rs-fw.c wifi: mac80211: keep A-MSDU data in sta and per-link 2022-09-06 10:17:08 +02:00
rs.c wifi: mac80211: keep A-MSDU data in sta and per-link 2022-09-06 10:17:08 +02:00
rs.h
rx.c iwlwifi: mvm: always tell the firmware to accept MCAST frames in BSS 2022-05-18 12:54:08 +02:00
rxmq.c wifi: iwlwifi: mvm: rxmq: further unify some VHT/HE code 2022-09-18 14:40:13 +03:00
scan.c wifi: iwlwifi: Track scan_cmd allocation size explicitly 2022-09-28 09:43:58 +03:00
sf.c wifi: mac80211: move interface config to new struct 2022-06-20 12:55:03 +02:00
sta.c wifi: iwlwifi: mvm: fix double list_add at iwl_mvm_mac_wake_tx_queue (other cases) 2022-10-11 11:42:39 +03:00
sta.h
tdls.c wifi: mac80211: move some future per-link data to bss_conf 2022-06-20 12:55:01 +02:00
testmode.h
time-event.c wifi: mac80211: move interface config to new struct 2022-06-20 12:55:03 +02:00
time-event.h
tt.c
tx.c wifi: mac80211: keep A-MSDU data in sta and per-link 2022-09-06 10:17:08 +02:00
utils.c wifi: mac80211: make some SMPS code MLD-aware 2022-06-20 12:55:30 +02:00
vendor-cmd.c