wlan: NULL pointer dereference in wlan_hdd_p2p.c

Currently cfgState->remain_on_chan_ctx is assigned
to pRemainChanCtx without NULL check of cfgState.
Added a NULL check prior to assignment.

Change-Id: I8c9862caae9155019284fd2a3f6241d4beb8b3cc
CRs-Fixed: 658825
1 file changed
tree: 448397a6822d1b8973dc8a48ef273b2736924126
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig