mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
qcacld-3.0: Add NULL check for hdd_ctx
In function hdd_update_dp_vdev_flags, hdd_ctx is not being validated before dereference. Add NULL check for hdd_ctx. Change-Id: Id907e273ec3d135c0e140d3b8b9aa6346af2d9a3 CRs-Fixed: 2162252
This commit is contained in:
parent
562c3118e2
commit
5febc939e0
1 changed files with 5 additions and 0 deletions
|
|
@ -1917,6 +1917,11 @@ QDF_STATUS hdd_update_dp_vdev_flags(void *cbk_data,
|
|||
psoc = cbk_data;
|
||||
|
||||
hdd_ctx = cds_get_context(QDF_MODULE_ID_HDD);
|
||||
if (!hdd_ctx) {
|
||||
hdd_err("Invalid HDD Context");
|
||||
return QDF_STATUS_E_INVAL;
|
||||
}
|
||||
|
||||
if (!hdd_ctx->tdls_nap_active)
|
||||
return status;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue