linux_dsm_epyc7002/drivers/net/wireless/intel/iwlwifi/dvm
Emmanuel Grumbach 1aa0ec5cdf iwlwifi: dvm: don't call << operator with a negative value
In https://bugzilla.kernel.org/show_bug.cgi?id=177341 Bob
reported a UBSAN WARNING on rs.c.

Undefined behaviour in drivers/net/wireless/intel/iwlwifi/dvm/rs.c:746:18

This because
	i = index - 1;
	for (mask = (1 << i); i >= 0; i--, mask >>= 1)

is unsafe: i could be negative and hence we can call <<
on a negative value.
This bug doesn't have any real impact since the condition
of the for loop will prevent any usage of mask.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=177341
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
2017-02-08 17:54:20 +02:00
..
agn.h cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
calib.c drivers/net/wireless/intel/iwlwifi/dvm/calib.c: simplfy min() expression 2016-12-14 16:04:08 -08:00
calib.h iwlwifi: change the Intel Wireless email address 2015-12-01 21:17:55 +02:00
commands.h iwlwifi: change the Intel Wireless email address 2015-12-01 21:17:55 +02:00
debugfs.c iwlwifi: dvm: remove unused variable compiler warning in debugfs.c 2017-01-26 09:39:01 +02:00
dev.h cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
devices.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
led.c iwlwifi: dvm: handle zero brightness for wifi LED 2016-02-01 16:40:18 +02:00
led.h iwlwifi: change the Intel Wireless email address 2015-12-20 14:48:22 +02:00
lib.c iwlwifi: dvm: Remove unused array 'iwlagn_loose_lookup' 2016-07-06 01:26:19 +03:00
mac80211.c iwlwifi: enlarge number of ucode sections 2017-01-26 09:38:57 +02:00
main.c iwlwifi: decouple PCIe transport from mac80211 2016-07-06 10:09:56 +03:00
Makefile Makefile: drop -D__CHECK_ENDIAN__ from cflags 2016-12-16 00:13:43 +02:00
power.c iwlwifi: change the Intel Wireless email address 2015-12-01 21:17:55 +02:00
power.h iwlwifi: change the Intel Wireless email address 2015-12-01 21:17:55 +02:00
rs.c iwlwifi: dvm: don't call << operator with a negative value 2017-02-08 17:54:20 +02:00
rs.h cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
rx.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
rxon.c iwlwifi: remove iwl_ht_params.smps_mode 2016-07-06 09:57:10 +03:00
scan.c mac80211: Add support for beacon report radio measurement 2016-07-06 14:53:19 +02:00
sta.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
tt.c iwlwifi: remove unused parameter from grab_nic_access 2015-12-21 10:11:39 +02:00
tt.h iwlwifi: change the Intel Wireless email address 2015-12-20 14:48:22 +02:00
tx.c cfg80211: remove enum ieee80211_band 2016-04-12 15:56:15 +02:00
ucode.c iwlwifi: enlarge number of ucode sections 2017-01-26 09:38:57 +02:00