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

Commit ea49b496 authored by Sai Chaitanya Kaveti's avatar Sai Chaitanya Kaveti
Browse files

msm: mhi_dev: Adding check in open channel API



Adding check for mhi_ctx and mhi_ctx->pdev in mhi_dev_open_channel API
which is called by the clients. This prevents the device crash when
mhi_dev_open_channel is called in PCIe RC configuration or when it is
called when mhi_ctx is not created yet.

Change-Id: Ic1737fa1090c06153b0638014f014ec7c1ca2903
Signed-off-by: default avatarSai Chaitanya Kaveti <quic_skaveti@quicinc.com>
parent 3f1349ab
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