wlan: Fix kernel panic issue after csrRoamCopyConnectedProfile

A memory allocation failure in csrRoamCopyConnectedProfile()
results in an assert on an access to this unallocated memory.
Thus check for the status and return a failure on error.

Change-Id: I7485b7ce35d7e7d86fab4dffff21212260eb7f0f
CRs-fixed: 580193
2 files changed
tree: 76b09b655bcfa3409b9a3f773c12702c42b7ae58
  1. CORE/
  2. firmware_bin/
  3. prima/
  4. riva/
  5. Android.mk
  6. Kbuild
  7. Kconfig