diff options
| author | Karthick S <skarthic@qti.qualcomm.com> | 2015-02-20 12:38:34 +0530 |
|---|---|---|
| committer | AnjaneeDevi Kapparapu <c_akappa@qti.qualcomm.com> | 2015-02-23 15:07:35 +0530 |
| commit | 128102400a24b761558ab27520ec54791ec27d65 (patch) | |
| tree | 6c8d9a89d71405ee91b776a0f39bf3ba6139da64 | |
| parent | 5b06ebbecf67a191157be1a712bbb9aa8b26a872 (diff) | |
qcacld-2.0: Add NULL check for scn->pdev_txrx_handle
Kernel Panic happens due to NULL pointer dereference while accessing
scn->pdev_txrx_handle->pl_dev after pdev_txrx_handle is freed. So added
NULL check to avoid this.
Change-Id: I54d4b17cd39eb1b58f9cb1264f7edfd3f35ebf22
CRs-fixed: 797580
| -rw-r--r-- | CORE/UTILS/PKTLOG/linux_ac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/CORE/UTILS/PKTLOG/linux_ac.c b/CORE/UTILS/PKTLOG/linux_ac.c index 96a131e69582..ae321a177c85 100644 --- a/CORE/UTILS/PKTLOG/linux_ac.c +++ b/CORE/UTILS/PKTLOG/linux_ac.c @@ -92,7 +92,7 @@ static struct file_operations pktlog_fops = { static struct ol_pktlog_dev_t *get_pl_handle(struct ol_softc *scn) { - if (!scn) + if (!scn || !scn->pdev_txrx_handle) return NULL; return scn->pdev_txrx_handle->pl_dev; } |
