android_kernel_samsung_sm8650/drivers/slimbus
Viken Dadhaniya ad8b7482e4 slimbus: qcom-ngd-ctrl: Avoid accessing deallocated stack
The functions qcom_slim_ngd_xfer_msg and
qcom_slim_ngd_xfer_msg_sync declare a local completion
variable called tx_sent. 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 qcom_slim_ngd_ctrl.
2. Initialize done during the probe phase.
3. Use this variable for handling transfer and
synchronization messages.

Change-Id: I6de6ee5e6cb6c25c63d6d91b313170d2cbbeea86
Signed-off-by: Viken Dadhaniya <quic_vdadhani@quicinc.com>
2024-06-27 08:26:19 -07:00
..
core.c qcom-slim-ngd: Export slim_vote_for_suspend api for clock source selection 2023-06-05 11:16:42 -07:00
Kconfig slimbus: qcom-ngd: Fix build error when CONFIG_SLIM_QCOM_NGD_CTRL=y && CONFIG_QCOM_RPROC_COMMON=m 2022-11-10 18:45:40 +01:00
Makefile slimbus: stream: add stream support 2018-07-07 17:25:23 +02:00
messaging.c slimbus: qcom-ngd-ctrl: Free txn tid in delayed interrupt scenario 2024-06-10 23:49:35 -07:00
qcom-ctrl.c slimbus: qcom: Remove unnecessary print function dev_err() 2022-05-19 18:56:32 +02:00
qcom-ngd-ctrl.c slimbus: qcom-ngd-ctrl: Avoid accessing deallocated stack 2024-06-27 08:26:19 -07:00
sched.c slimbus: Add support for 'clock-pause' feature 2017-12-19 11:01:03 +01:00
slimbus.h qcom-slim-ngd: Export slim_vote_for_suspend api for clock source selection 2023-06-05 11:16:42 -07:00
stream.c slimbus: Added debug prints for failure Scenario 2024-03-12 18:42:30 +05:30
trace.h slimbus: qcom-ngd-ctrl: snapshot of slimbus ngd driver 2022-11-23 01:15:19 -08:00