diff options
author | Qiang Yu <quic_qianyu@quicinc.com> | 2022-10-16 06:05:32 +0300 |
---|---|---|
committer | Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> | 2022-10-28 20:29:10 +0300 |
commit | 869a99907faea6d1835b0bd0d0422ae3519c6ea9 (patch) | |
tree | 3089c84a1d8241f64a871ac79fc40fb139127312 /tools/perf/scripts/python/stackcollapse.py | |
parent | 46db0ba12be6cfd043df1d09b5831cb84ce2307f (diff) | |
download | linux-869a99907faea6d1835b0bd0d0422ae3519c6ea9.tar.xz |
bus: mhi: host: Fix race between channel preparation and M0 event
There is a race condition where mhi_prepare_channel() updates the
read and write pointers as the base address and in parallel, if
an M0 transition occurs, the tasklet goes ahead and rings
doorbells for all channels with a delta in TRE rings assuming
they are already enabled. This causes a null pointer access. Fix
it by adding a channel enabled check before ringing channel
doorbells.
Cc: stable@vger.kernel.org # 5.19
Fixes: a6e2e3522f29 "bus: mhi: core: Add support for PM state transitions"
Signed-off-by: Qiang Yu <quic_qianyu@quicinc.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Link: https://lore.kernel.org/r/1665889532-13634-1-git-send-email-quic_qianyu@quicinc.com
[mani: CCed stable list]
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions