diff options
| author | Prashanth Bhatta <bhattap@codeaurora.org> | 2016-09-01 09:07:33 -0700 |
|---|---|---|
| committer | Prashanth Bhatta <bhattap@codeaurora.org> | 2016-09-01 16:55:10 -0700 |
| commit | e7203bbcb0dc06de3bb9e1cf32639442ffb0d201 (patch) | |
| tree | 392eaa928148c23ca2166d0e98c165b7d8f9f839 | |
| parent | a3a3c169dd0d98dcb3a04279ad2d8c7bfaf7e894 (diff) | |
icnss: Fix NULL pointer dererference
With commit a3a3c169dd0d ("icnss: Prevent power collapse during
driver probe/remove"), NULL pointer dereference happens in probe
because of recent changes in the function. Fix the issue by using
right pointer.
CRs-Fixed: 1061279
Change-Id: I464579953fabe1bd42ced50f0bbfdfd3cda0a492
Signed-off-by: Prashanth Bhatta <bhattap@codeaurora.org>
| -rw-r--r-- | drivers/soc/qcom/icnss.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/soc/qcom/icnss.c b/drivers/soc/qcom/icnss.c index 96d51bcc1cc5..e69d32dfbd83 100644 --- a/drivers/soc/qcom/icnss.c +++ b/drivers/soc/qcom/icnss.c @@ -3544,7 +3544,7 @@ static int icnss_probe(struct platform_device *pdev) spin_lock_init(&priv->event_lock); spin_lock_init(&priv->on_off_lock); - wakeup_source_init(&penv->ws, "icnss_ws"); + wakeup_source_init(&priv->ws, "icnss_ws"); priv->event_wq = alloc_workqueue("icnss_driver_event", WQ_UNBOUND, 1); if (!priv->event_wq) { |
