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

Skip to content
Commit 18c0e843 authored by Dhoat Harpal's avatar Dhoat Harpal
Browse files

soc: qcom: glink: Move get reference to valid location



In function ch_name_to_ch_ctx_create reference for ctx is taken
without checking if ctx is valid. This leads to possible NULL pointer
dereference.

Take reference only when it is verified that ctx is not NULL.

CRs-Fixed: 2059742
Change-Id: I15998780b602e325a90e7c8c303cd442c5381fe8
Signed-off-by: default avatarDhoat Harpal <hdhoat@codeaurora.org>
parent 6f56b2a9
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