diff options
| author | Bartosz Golaszewski <[email protected]> | 2025-06-30 12:12:04 +0000 |
|---|---|---|
| committer | Bjorn Andersson <[email protected]> | 2025-07-17 03:50:55 +0000 |
| commit | 87be3e7a2d0030cda6314d2ec96b37991f636ccd (patch) | |
| tree | c3500178948621df462fecb78d9b46a385329e20 /rust/helpers | |
| parent | firmware: qcom: scm: take struct device as argument in SHM bridge enable (diff) | |
| download | kernel-87be3e7a2d0030cda6314d2ec96b37991f636ccd.tar.gz kernel-87be3e7a2d0030cda6314d2ec96b37991f636ccd.zip | |
firmware: qcom: scm: initialize tzmem before marking SCM as available
Now that qcom_scm_shm_bridge_enable() uses the struct device passed to
it as argument to make the QCOM_SCM_MP_SHM_BRIDGE_ENABLE SCM call, we
can move the TZMem initialization before the assignment of the __scm
pointer in the SCM driver (which marks SCM as ready to users) thus
fixing the potential race between consumer calls and the memory pool
initialization.
Reported-by: Johan Hovold <[email protected]>
Closes: https://lore.kernel.org/all/[email protected]/
Signed-off-by: Bartosz Golaszewski <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Bjorn Andersson <[email protected]>
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions
