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

Skip to content
Commit a9496298 authored by Eric Holmberg's avatar Eric Holmberg Committed by Stephen Boyd
Browse files

msm: smd_tty: handle invalid device for open timeout



If an invalid device is passed into the open timeout device attribute,
the code correctly identifies the error, but then proceeds to access an
array with the out-of-bounds index.

Return early with an error code in the case of an invalid device.

CRs-Fixed: 505197
Change-Id: I7a9bf906f2326d8ea627e2ab9310c95bfee98914
Signed-off-by: default avatarEric Holmberg <eholmber@codeaurora.org>
parent c9c2bc88
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