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

Commit ab401980 authored by Steven Cahail's avatar Steven Cahail Committed by Gerrit - the friendly Code Review server
Browse files

char: msm_smd_pkt: Avoid unloading modem in smd_pkt_open



In smd_pkt_open, it is possible to decrement the PIL reference count for
the modem enough times to unload a remote subsystem. If an error is
returned while waiting for the open sequence to complete, the remote
subsystem's reference count will be decremented, and then decremented
again when the channel is subsequently closed.

To avoid this, close the channel and set the channel reference to NULL
when an error is returned while waiting for the open sequence to
complete. Also, set the PIL reference to the remote subsystem to NULL
after putting the reference.

CRs-Fixed: 887371
Change-Id: I72eb04f74a76b8d9450b340cfcbb288badfebdc0
Signed-off-by: default avatarSteven Cahail <scahail@codeaurora.org>
parent a6b58f17
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