linux-bl808/drivers/net/wireless/intel/iwlwifi/mvm
Luca Coelho 3d71c3f1f5 iwlwifi: mvm: check return value of rs_rate_from_ucode_rate()
The rs_rate_from_ucode_rate() function may return -EINVAL if the rate
is invalid, but none of the callsites check for the error, potentially
making us access arrays with index IWL_RATE_INVALID, which is larger
than the arrays, causing an out-of-bounds access.  This will trigger
KASAN warnings, such as the one reported in the bugzilla issue
mentioned below.

This fixes https://bugzilla.kernel.org/show_bug.cgi?id=200659

Cc: stable@vger.kernel.org
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2018-10-13 14:48:44 +03:00
..
binding.c
coex.c
constants.h
d3.c iwlwifi: mvm: move rt status check to the start of the resume flow 2018-10-08 10:46:03 +03:00
debugfs-vif.c
debugfs.c iwlwifi: mvm: use match_string() helper 2018-10-06 10:25:54 +03:00
debugfs.h
fw-api.h
fw.c iwlwifi: mvm: remove per-queue hw refcount 2018-10-08 10:47:32 +03:00
led.c
mac-ctxt.c iwlwifi: dbg: group trigger condition to helper function 2018-10-06 10:25:44 +03:00
mac80211.c iwlwifi: mvm: clear HW_RESTART_REQUESTED when stopping the interface 2018-10-06 10:25:45 +03:00
Makefile
mvm.h iwlwifi: mvm: kill INACTIVE queue state 2018-10-08 10:49:22 +03:00
nvm.c iwlwifi: mvm Support new MCC update response 2018-10-06 10:25:51 +03:00
offloading.c
ops.c iwlwifi: dbg: make trigger functions type agnostic 2018-10-06 10:25:55 +03:00
phy-ctxt.c
power.c
quota.c
rs-fw.c
rs.c iwlwifi: mvm: check return value of rs_rate_from_ucode_rate() 2018-10-13 14:48:44 +03:00
rs.h
rx.c iwlwifi: dbg: group trigger condition to helper function 2018-10-06 10:25:44 +03:00
rxmq.c iwlwifi: mvm: show more HE radiotap data for TB PPDUs 2018-10-06 10:25:53 +03:00
scan.c iwlwifi: mvm: use fast balance scan in case of DCM mode with P2P GO 2018-10-08 10:36:18 +03:00
sf.c
sta.c iwlwifi: mvm: kill INACTIVE queue state 2018-10-08 10:49:22 +03:00
sta.h iwlwifi: mvm: kill INACTIVE queue state 2018-10-08 10:49:22 +03:00
tdls.c
testmode.h
time-event.c iwlwifi: dbg: group trigger condition to helper function 2018-10-06 10:25:44 +03:00
time-event.h
tof.c
tof.h
tt.c
tx.c iwlwifi: mvm: kill INACTIVE queue state 2018-10-08 10:49:22 +03:00
utils.c iwlwifi: mvm: remove per-queue hw refcount 2018-10-08 10:47:32 +03:00