mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
qcacld-3.0: Add NULL pointer validation on pmkid received
In wlan_hdd_extauth_copy_pmkid(), pmkid received from userspace could be NULL. Currently there is no validation for the PMKID. Add check to validate the received PMKID before copy. Change-Id: I756458562bf20226a202a5ecdbbe9e79884169c7 CRs-Fixed: 2508935
This commit is contained in:
parent
29bfc8af7a
commit
af84059e8d
1 changed files with 2 additions and 1 deletions
|
|
@ -21708,7 +21708,8 @@ static void
|
|||
wlan_hdd_extauth_copy_pmkid(struct cfg80211_external_auth_params *params,
|
||||
uint8_t *pmkid)
|
||||
{
|
||||
qdf_mem_copy(pmkid, params->pmkid, PMKID_LEN);
|
||||
if (params->pmkid)
|
||||
qdf_mem_copy(pmkid, params->pmkid, PMKID_LEN);
|
||||
}
|
||||
|
||||
#else
|
||||
|
|
|
|||
Loading…
Reference in a new issue