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

Skip to content
Commit f4e9c336 authored by Rishabh Bhatnagar's avatar Rishabh Bhatnagar Committed by Gerrit - the friendly Code Review server
Browse files

drivers: esoc: Set crash status after modem status goes low



In situations where graceful shutdown and errfatal occur parallely on
modem, the graceful shutdown thread can go into crash shutdown path
because the crash flag is set asynchronously in mdm_errfatal handler.
In this case clients are notified that modem has crashed even though
it hasn't crashed completely. Clients perform cleanup based on the
assumption that modem is completely crashed and this might lead use
after free scenarios. Therefore wait for modem status to go low to
set the crash flag.

Change-Id: Ibafc54b3a136816c33476a28492bd081b053eecc
Signed-off-by: default avatarRishabh Bhatnagar <rishabhb@codeaurora.org>
parent b5fd6155
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment