]> git.baikalelectronics.ru Git - kernel.git/commit
rsi: fix array out of bound
authorzhangyue <zhangyue1@kylinos.cn>
Wed, 8 Dec 2021 09:53:41 +0000 (17:53 +0800)
committerKalle Valo <kvalo@kernel.org>
Wed, 15 Dec 2021 14:28:26 +0000 (16:28 +0200)
commitd3ec825d22a0e368c7408fd789714b981e6c1185
tree3cca515ec517b75fbc94ca2822effd07d966971f
parent971b423a3e716fc7ed56cc15f780b76fa3fbde9a
rsi: fix array out of bound

Limit the max of 'ii'. If 'ii' greater than or
equal to 'RSI_MAX_VIFS', the array 'adapter->vifs'
may be out of bound

Signed-off-by: zhangyue <zhangyue1@kylinos.cn>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20211208095341.47777-1-zhangyue1@kylinos.cn
drivers/net/wireless/rsi/rsi_91x_mac80211.c