wlan: SME: Add NULL check for pSession value after CSR_GET_SESSION

In csrRoamProcessSetKeyCommand and csrRoamProcessRemoveKeyCommand
functions, CSR_GET_SESSION() returns NULL if sessionId is more than
or equal to CSR_ROAM_SESSION_MAX. This may lead to dereferencing
pSession initialised to NULL.

Adding NULL check for pSession value after CSR_GET_SESSION().

Change-Id: I27b7e2b9806e59ca1b2e46e408e2834b0561a144
CRs-Fixed: 703677
1 file changed
tree: 21dc5ec6dca8541f54576fc987c50296bce82dd8
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig
  7. Makefile