qcacld-3.0: Fix num_rates check in lim_populate_matching_rate_set

In function lim_populate_matching_rate_set, sum of num_rates is being
checked against max array size but it does not take into account 8-bit
arithmetic overflow in calculating sum. Because of this even though
actual sum is greater than max array size, it might wrap around and be
less than max array size thus failing the condition. Perform 16-bit
arithmetic sum instead to avoid overflow.

Change-Id: Ia078e37891835540c974347ec6b5c9794300e264
CRs-Fixed: 1091486
1 file changed
tree: e13ff229b1c6ef8d4b65650b176aed4ef0ba2869
  1. core/
  2. uapi/
  3. Android.mk
  4. Kbuild
  5. Kconfig
  6. Makefile
  7. README.txt