From e7203bbcb0dc06de3bb9e1cf32639442ffb0d201 Mon Sep 17 00:00:00 2001 From: Prashanth Bhatta Date: Thu, 1 Sep 2016 09:07:33 -0700 Subject: 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 --- drivers/soc/qcom/icnss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- cgit v1.2.3