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

Commit 59a451e3 authored by Steven Cahail's avatar Steven Cahail Committed by Matt Wagantall
Browse files

soc: qcom: glink_ssr: Validate subsystem info during channel close



In the glink_ssr client's close function, the subsystem information
structure is obtained using the get_info_for_edge() function. This
function returns NULL if no subsystem information structure is found for
the requested edge. The close function does not check whether NULL was
returned, which could lead to a perceived NULL pointer dereference.
However, this is not possible since the edge info is configured from the
device tree before the channel is opened and should always be valid.

Add check to ensure that the design assumption that get_info_for_edge()
is valid is still true.

Change-Id: If88cbc1419669fa240667ae92ce2e78e49ad970c
Signed-off-by: default avatarSteven Cahail <scahail@codeaurora.org>
parent 9199c6e9
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