Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 93ec4c02 authored by Sridhar Ancha's avatar Sridhar Ancha Committed by Gerrit - the friendly Code Review server
Browse files

msm: ipa: Fix to accessing ipa_q6_clnt handle



There is a possibility that ipa_q6_clnt handle is used
after it is freed espcially in scenarios where the handle
is freed on service exited notification. Make a change to
not clean up the handle when service is exited instead
do it as part of BEFORE_POWERUP processing only.

Change-Id: I789cdec6f056b17a605f3454e6cd5702542c454f
Acked-by: default avatarChaitanya Pratapa <cpratapa@qti.qualcomm.com>
Signed-off-by: default avatarSridhar Ancha <sancha@codeaurora.org>
parent d1d953cf
Loading
Loading
Loading
Loading
+0 −5
Original line number Original line Diff line number Diff line
@@ -854,11 +854,6 @@ static int ipa_q6_clnt_svc_event_notify(struct notifier_block *this,
			queue_delayed_work(ipa_clnt_req_workqueue,
			queue_delayed_work(ipa_clnt_req_workqueue,
					   &work_svc_arrive, 0);
					   &work_svc_arrive, 0);
		break;
		break;
	case QMI_SERVER_EXIT:
		if (!atomic_read(&workqueues_stopped))
			queue_delayed_work(ipa_clnt_req_workqueue,
					   &work_svc_exit, 0);
		break;
	default:
	default:
		break;
		break;
	}
	}