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

Skip to content
Commit bb35da62 authored by Jeff Hugo's avatar Jeff Hugo
Browse files

soc: qcom: smd: Range check edge on open



The edge passed into smd_named_open_on_edge() is used as an array index
to see if the requested edge is available.  If the edge value exceeds the
defined set of edges, an access passed the end of the array would happen
which may cause a crash.  Fix this by range checking the edge value before
use.

Change-Id: I1e2f1e9611c8bdb6677c6e76ca2d51eb4b865e50
Signed-off-by: default avatarJeffrey Hugo <jhugo@codeaurora.org>
parent 1dd1f498
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