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

Commit 2a4ff3f7 authored by Steven Cahail's avatar Steven Cahail
Browse files

soc: qcom: glink_ssr: Register link state callbacks after adding to list



During probe(), the driver registers link state callbacks for each
subsystem information structure, and then adds structures to a list. In
the link state callback, this list is queried for the structure. If a
callback is triggered before the structure is added to the list, a NULL
pointer dereference can occur.

Only register link state callbacks after adding the subsystem
information structure to the list, and add a check in the link state
callback to see if the structure obtained in the list is NULL before
dereferencing it.

Change-Id: I18d317ba1f70f0051a4adb83c74142d3bd33a1ae
Signed-off-by: default avatarSteven Cahail <scahail@codeaurora.org>
parent 18c43109
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