linux/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
calib.c
calib.h
commands.h
debugfs.c iwlwifi: dvm: remove unused variable compiler warning in debugfs.c 2017-01-26 09:39:01 +02:00
dev.h
devices.c
led.c
led.h
lib.c
mac80211.c
main.c
Makefile
power.c
power.h
rs.c iwlwifi: dvm: don't call << operator with a negative value 2017-02-08 17:54:20 +02:00
rs.h
rx.c
rxon.c
scan.c
sta.c
tt.c
tt.h
tx.c
ucode.c