]> git.baikalelectronics.ru Git - kernel.git/commit
rsi: add in missing RSI_FSM_STATES into array fsm_state
authorColin Ian King <colin.king@canonical.com>
Thu, 22 Jun 2017 16:58:04 +0000 (17:58 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 28 Jun 2017 17:54:14 +0000 (20:54 +0300)
commit4c71bfc3974a3f52be6ef6bb76ddddea3b8dd404
treeb3d01175302370be46fea5ce683662d12b0c5d22
parent12b81da0a2144c617646e0213848777731994a27
rsi: add in missing RSI_FSM_STATES into array fsm_state

Two recent commits added new RSI_FSM_STATES (namely FSM_FW_NOT_LOADED
and FSM_COMMON_DEV_PARAMS_SENT) and the corresponding table fsm_state
was not updated to match. This can lead to an array overrun when
accessing the latter two states in fsm_state. Fix this by adding in
the missing states.

Detected by CoverityScan, CID#1398379 ("Illegal address computation")

Fixes: 14915fd4c0a6 ("rsi: add tx frame for common device configuration")
Fixes: f7d3b86fc6f4 ("rsi: Register interrupt handler before firmware load")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/rsi/rsi_91x_debugfs.c