diff options
| author | Komal Seelam <kseelam@qti.qualcomm.com> | 2015-10-16 18:50:00 +0530 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2015-10-16 19:03:32 +0530 |
| commit | 1a368cf4df98e4843e1f752dbdbb98c73c088abd (patch) | |
| tree | 9cff689ded5d3872d888ce0de4990eb44044411a | |
| parent | 9f1f06746094cb2cf5c472420dd617cd6ebf5724 (diff) | |
qcacld-2.0: Fix KW issues
Handle possible NULL pointer dereference to fix KW issues
Change-Id: I55c58be0a97874625b7487f0316116e07d47dca7
CRs-fixed: 924538
| -rw-r--r-- | CORE/SERVICES/HIF/PCIe/hif_pci.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/CORE/SERVICES/HIF/PCIe/hif_pci.c b/CORE/SERVICES/HIF/PCIe/hif_pci.c index 2df900ae6f7c..27fd2a090dd3 100644 --- a/CORE/SERVICES/HIF/PCIe/hif_pci.c +++ b/CORE/SERVICES/HIF/PCIe/hif_pci.c @@ -3565,6 +3565,9 @@ void hif_runtime_pm_prevent_suspend_deinit(void *data) if (!sc) return; + if (!context) + return; + /* * Ensure to delete the context list entry and reduce the usage count * before freeing the context if context is active. |
