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

Commit 9472ca1b authored by Kranthikumar Kurapati's avatar Kranthikumar Kurapati Committed by Gerrit - the friendly Code Review server
Browse files

crypto: msm: qcrypto: Fix spinlock deadlock issue



Disable and then enable bottom half processing across completion callback.
Otherwise spinlock deadlock may happen.

Change-Id: I1d38a9b978d6a3b72c820fb8c5ccc27e7afc06a3
Acked-by: default avatarChe-Min Hsieh <cheminh@qti.qualcomm.com>
Signed-off-by: default avatarKranthikumar Kurapati <kkurap@codeaurora.org>
parent fa3dfef9
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1387,7 +1387,9 @@ again:
		rev = llist_next(rev);

		areq = arsp->async_req;
		local_bh_disable();
		areq->complete(areq, arsp->res);
		local_bh_enable();
		atomic_dec(&cp->resp_cnt);
		if (ACCESS_ONCE(cp->ce_req_proc_sts) == STOPPED &&
				atomic_read(&cp->resp_cnt) <=