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:
Jeffrey Hugo <jhugo@codeaurora.org>
Loading
Please register or sign in to comment