mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
qcacmn: Add null check in qdf_runtime_lock_deinit()
qdf_runtime_lock_deinit() is currently using the lock blindly without checking if it is null. Add a null check to prevent it from using a null pointer. Change-Id: I3aa13c436f3668de7b1070c2c40bc69c7a4cc9fc CRs-Fixed: 2642914
This commit is contained in:
parent
069884fe62
commit
23af24db1f
1 changed files with 4 additions and 0 deletions
|
|
@ -580,6 +580,10 @@ qdf_export_symbol(__qdf_runtime_lock_init);
|
|||
void qdf_runtime_lock_deinit(qdf_runtime_lock_t *lock)
|
||||
{
|
||||
void *hif_ctx = cds_get_context(QDF_MODULE_ID_HIF);
|
||||
|
||||
if (!lock)
|
||||
return;
|
||||
|
||||
hif_runtime_lock_deinit(hif_ctx, lock->lock);
|
||||
}
|
||||
qdf_export_symbol(qdf_runtime_lock_deinit);
|
||||
|
|
|
|||
Loading…
Reference in a new issue