Re: [PATCH][next] ath10k: fix out of bound read on array ath10k_rates

2018-10-11 Thread Kalle Valo
Colin King wrote: > From: Colin Ian King > > An out-of-bounds read on array ath10k_rates is occurring because > the maximum number of elements is currently based on the size of > the array and not the number of elements in the array. Fix this > by using ARRAY_SIZE instead of sizeof. > >

Re: [PATCH][next] ath10k: fix out of bound read on array ath10k_rates

2018-10-11 Thread Kalle Valo
Colin King wrote: > From: Colin Ian King > > An out-of-bounds read on array ath10k_rates is occurring because > the maximum number of elements is currently based on the size of > the array and not the number of elements in the array. Fix this > by using ARRAY_SIZE instead of sizeof. > >

[PATCH][next] ath10k: fix out of bound read on array ath10k_rates

2018-10-05 Thread Colin King
From: Colin Ian King An out-of-bounds read on array ath10k_rates is occurring because the maximum number of elements is currently based on the size of the array and not the number of elements in the array. Fix this by using ARRAY_SIZE instead of sizeof. Detected by CoverityScan, CID#1473918

[PATCH][next] ath10k: fix out of bound read on array ath10k_rates

2018-10-05 Thread Colin King
From: Colin Ian King An out-of-bounds read on array ath10k_rates is occurring because the maximum number of elements is currently based on the size of the array and not the number of elements in the array. Fix this by using ARRAY_SIZE instead of sizeof. Detected by CoverityScan, CID#1473918