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

Commit bad018ae authored by Mehul Raninga's avatar Mehul Raninga Committed by Chintan Kothari
Browse files

Slimbus: slim-msm-ngd: Avoid accessing deallocated stack



The functions ngd_xfer_msg declare a local completion
variable called done. However, this variable is accessed
beyond the scope of these functions.

To address this issue:
1. Instead of keeping done as a local variable,
move it to msm_slim_ctrl.
2. Initialize done during the probe phase.
3. Use this variable for handling transfer and
synchronization messages.

Change-Id: If97b71e2db730ab21bfd07479d2737b0546e1f8e
Signed-off-by: default avatarMehul Raninga <quic_mraninga@quicinc.com>
Signed-off-by: default avatarChintan Kothari <quic_ckothari@quicinc.com>
parent d8204f4d
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