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

Commit ccd3c99f authored by Steven Cahail's avatar Steven Cahail
Browse files

soc: qcom: glink: Fix NULL pointer dereference in glink_ssr notification



In the notify_for_subsystem() function, a NULL pointer dereference can
occur if a subsystem never came up when the system booted. In this case,
the driver will correctly detect that the subsystem did not come up and
will not create a channel or callback data for it. Later, when resetting
state after performing the notifications and receiving the responses,
notify_for_subsystem() assumes that callback data is present for all
subsystems, which leads to the NULL pointer dereference.

Before resetting state held in the callback data, ensure that it is not
NULL.

CRs-Fixed: 900599
Change-Id: I00e2b30bfea78e4193054a235c82c287c300498a
Signed-off-by: default avatarSteven Cahail <scahail@codeaurora.org>
parent 7193533b
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