Possible negative index on ieee80211_ra.c

2021-03-25 Thread Ricardo Mestre
Hi, As the comment already explains `mcs' may come invalid from the the hardware and then code uses it as index before actually checking its value. The patch below adjusts it so that it's only used after the check. Reported on CID 1502921. Only compile tested. Comments, OK? Index: ieee80211_ra.

Re: Possible negative index on ieee80211_ra.c

2021-03-25 Thread Stefan Sperling
On Thu, Mar 25, 2021 at 11:48:22AM +, Ricardo Mestre wrote: > Hi, > > As the comment already explains `mcs' may come invalid from the the hardware > and then code uses it as index before actually checking its value. The patch > below adjusts it so that it's only used after the check. > > Repo