commit | 69280df6ee960700fc0d486fbc5c445998e1e5a5 | [log] [tgz] |
---|---|---|
author | Dustin Brown <dustinb@codeaurora.org> | Fri Jun 09 11:37:19 2017 -0700 |
committer | snandini <snandini@codeaurora.org> | Mon Jun 12 17:19:23 2017 -0700 |
tree | 3839e7119031e96d1f7f839758fbc6f0a5718d40 | |
parent | 95538ddc26f8e2e9d759aa8b7385bb541c5facee [diff] |
qcacmn: Fix bounds check in populate_mac_phy_capability In populate_mac_phy_capability, bounds on an array are checked after writing to the array. This leads to writing to one past the end of the array under error conditions. Check the bounds of the array before, rather than after, writing to it in populate_mac_phy_capability. Change-Id: I34c7415b8fb925bea5a715214e3aa3ac8a4bacc8 CRs-Fixed: 2059155