mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
qcacld-3.0: Prevent null pointer dereference issue
Add null check for pdev after cds_get_context, while retrieving the context maintained by CDS Change-Id: I2d6de7d5ad2a46139b2594cf966f2c083c9bb4b4 CRs-Fixed: 2187396
This commit is contained in:
parent
3bc79311d7
commit
eff0d77da1
1 changed files with 5 additions and 0 deletions
|
|
@ -2650,6 +2650,11 @@ static void hdd_ipa_uc_op_cb(struct op_msg_type *op_msg, void *usr_ctxt)
|
|||
struct ol_txrx_pdev_t *pdev = cds_get_context(QDF_MODULE_ID_TXRX);
|
||||
QDF_STATUS status = QDF_STATUS_SUCCESS;
|
||||
|
||||
if (!pdev) {
|
||||
HDD_IPA_LOG(QDF_TRACE_LEVEL_FATAL, "pdev is NULL");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!op_msg || !usr_ctxt) {
|
||||
HDD_IPA_LOG(QDF_TRACE_LEVEL_ERROR, "INVALID ARG");
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue