wlan: Fix NULL pointer dereference in csrRoamIssueSetKeyCommand()

Static source code analysis identified a potential NULL pointer
dereference which could occur in csrRoamIssueSetKeyCommand() when
FEATURE_WLAN_CCX is enabled due to the order of operations.  Update
the code so that csrReleaseCommandSetKey() can only be called if
pCommand is not NULL.

Change-Id: Id7e822f2be02bcbefd5d6e6d502b0c7d3b4496ae
CRs-fixed: 470188
1 file changed
tree: 5cdaf172f3239d259f672ff272a0d7e95df961e4
  1. CORE/
  2. firmware_bin/
  3. riva/
  4. Android.mk
  5. Kbuild
  6. Kconfig