wlan: Fix static analysis error.

Currently numChan is initialized to WNI_CFG_VALID_CHANNEL_LIST_LEN.
Then a list of valid channels are populated. But if valid channels
are not obtained still it proceeds further resulting in buffer
corruption. As a part of fix make sure to retun if valid channels
are not properly obtained.

Change-Id: I436b5c93919db297662ff7960d309ffe88d41599
CRs-fixed: 798061
2 files changed
tree: cdaab4b2b81946db562f91fa8b95e76ffb29b6ec
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile