Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a6c67339 authored by Roel Kluin's avatar Roel Kluin Committed by John W. Linville
Browse files

wireless: beyond ARRAY_SIZE of intf->crypto_stats



Do not go beyond ARRAY_SIZE of intf->crypto_stats

Signed-off-by: default avatarRoel Kluin <roel.kluin@gmail.com>
Acked-by: default avatarIvo van Doorn <IvDoorn@gmail.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent c9d2fbf3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -138,7 +138,7 @@ void rt2x00debug_update_crypto(struct rt2x00_dev *rt2x00dev,

	if (cipher == CIPHER_TKIP_NO_MIC)
		cipher = CIPHER_TKIP;
	if (cipher == CIPHER_NONE || cipher > CIPHER_MAX)
	if (cipher == CIPHER_NONE || cipher >= CIPHER_MAX)
		return;

	/* Remove CIPHER_NONE index */