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

Skip to content
Commit 5c83fb84 authored by Steven Cahail's avatar Steven Cahail
Browse files

soc: qcom: smd: Return -EBUSY for a port that exists but is already open



Currently, the smd module returns -ENODEV if an attempt is made
to open a port that is already open. This means that a client
can't tell the difference between the port not existing and the
port being in use by another client.

Fix iterates through the list of currently open ports prior to
opening a new port and checks to see if the port is already open.
If port is already open, fix logs an error message and returns -EBUSY.

Change-Id: I19834ed693f4b58736d73f5acb6fea5fc29beb57
Signed-off-by: default avatarSteven Cahail <scahail@codeaurora.org>
parent 46fe9155
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