linux-stable/drivers/net/wireless/intel/iwlwifi
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
..
cfg wifi: iwlwifi: cfg: remove IWL_DEVICE_BZ_COMMON macro 2022-09-18 14:40:14 +03:00
dvm wifi: iwlwifi: Track scan_cmd allocation size explicitly 2022-09-28 09:43:58 +03:00
fw wifi: iwlwifi: mvm: Add handling for scan offload match info notification 2022-09-18 14:40:16 +03:00
mei iwlwifi: mei: fix potential NULL-ptr deref 2022-05-18 12:58:59 +02:00
mvm treewide: use get_random_u32_inclusive() when possible 2022-11-18 02:18:02 +01:00
pcie wireless-next patches for v6.1 2022-09-30 10:07:31 -07:00
queue iwlwifi: use 4k queue size for Bz A-step 2022-03-10 09:23:28 +02:00
Kconfig wifi: iwlwifi: Mark IWLMEI as broken 2022-09-12 14:22:55 +03:00
Makefile
iwl-agn-hw.h
iwl-config.h wifi: iwlwifi: pcie: add support for BZ devices 2022-09-18 14:40:12 +03:00
iwl-context-info-gen3.h iwlwifi: mvm: add support for IMR based on platform 2022-03-10 09:23:27 +02:00
iwl-context-info.h
iwl-csr.h brcmfmac 2022-03-11 13:00:17 -08:00
iwl-dbg-tlv.c iwlwifi: iwl-dbg: Use del_timer_sync() before freeing 2022-04-23 09:32:12 +03:00
iwl-dbg-tlv.h iwlwifi: Configure FW debug preset via module param. 2022-03-10 09:23:27 +02:00
iwl-debug.c
iwl-debug.h
iwl-devtrace-data.h
iwl-devtrace-io.h
iwl-devtrace-iwlwifi.h
iwl-devtrace-msg.h tracing/iwlwifi: Use the new __vstring() helper 2022-07-15 17:44:40 -04:00
iwl-devtrace-ucode.h
iwl-devtrace.c
iwl-devtrace.h
iwl-drv.c brcmfmac 2022-03-11 13:00:17 -08:00
iwl-drv.h iwlwifi: move symbols into a separate namespace 2022-02-18 10:40:52 +02:00
iwl-eeprom-parse.c
iwl-eeprom-parse.h
iwl-eeprom-read.c iwlwifi: eeprom: clean up macros 2022-02-18 10:40:53 +02:00
iwl-eeprom-read.h
iwl-fh.h iwlwifi: yoyo: add IMR DRAM dump support 2022-02-18 10:40:51 +02:00
iwl-io.c iwlwifi: make some functions friendly to sparse 2022-02-18 10:40:52 +02:00
iwl-io.h
iwl-modparams.h iwlwifi: Configure FW debug preset via module param. 2022-03-10 09:23:27 +02:00
iwl-nvm-parse.c brcmfmac 2022-03-11 13:00:17 -08:00
iwl-nvm-parse.h
iwl-op-mode.h
iwl-phy-db.c iwlwifi: remove unused macros 2022-02-18 10:40:53 +02:00
iwl-phy-db.h
iwl-prph.h iwlwifi: mvm: add OTP info in case of init failure 2022-05-18 12:54:08 +02:00
iwl-scd.h
iwl-trans.c iwlwifi: cfg: add support for 1K BA queue 2022-02-18 10:40:50 +02:00
iwl-trans.h iwlwifi: support new queue allocation command 2022-02-18 10:40:55 +02:00