qcacmn: Fix Null Pointer Kernel Panic on wlan_crypto_setkey

Fixing the Null pointer derefence in wlan_crypto_setkey.

Change-Id: I4853d9603be7f6b7d4f9e2c253dd9d2074bf4f68
CRs-Fixed: 2107331
This commit is contained in:
Rohan Dutta 2017-09-11 14:40:52 +05:30 • committed by snandini
commit 44a78ca333

View file

@ -354,7 +354,6 @@ QDF_STATUS wlan_crypto_setkey(struct wlan_objmgr_vdev *vdev,
if (wlan_crypto_vdev_has_auth_mode(vdev,
(1 << WLAN_CRYPTO_AUTH_8021X))) {
req_key->flags |= WLAN_CRYPTO_KEY_DEFAULT;
crypto_priv->def_tx_keyid = req_key->keyix;
}
}