mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 13:49:24 -04:00
qcacld-3.0: Fix null pointer dereference of profile
In csr_issue_set_context_req_helper() profile is dereferenced to get the encryption type. Add null check before accessing the profile pointer. Change-Id: I40c148648130918f9da0194ff6e132d55b113008 CRs-Fixed: 2777778
This commit is contained in:
parent
a8603fc937
commit
55e19140ea
1 changed files with 2 additions and 1 deletions
|
|
@ -10886,7 +10886,8 @@ csr_issue_set_context_req_helper(struct mac_context *mac_ctx,
|
|||
* For open mode authentication, send dummy install key response to
|
||||
* send OBSS scan and QOS event.
|
||||
*/
|
||||
if (profile->negotiatedUCEncryptionType == eCSR_ENCRYPT_TYPE_NONE) {
|
||||
if (profile &&
|
||||
profile->negotiatedUCEncryptionType == eCSR_ENCRYPT_TYPE_NONE) {
|
||||
if (unicast)
|
||||
return QDF_STATUS_SUCCESS;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue