prima: Fix possible malloc with zero size

In csrNeighborRoamTransitToCFGChanScan, it is possible that
mem alloc is done with size zero. This fix tries to avoid
such a case and return failure if there are no channels to scan.

Change-Id: I2b97d8bb4634e8417025aac8c19972e20c580fa2
CRs-Fixed: 812945
1 file changed
tree: 5399f5f6da61970993fe2d7df808b92cb6fe9075
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile