diff options
| author | Amelie Delaunay <amelie.delaunay@foss.st.com> | 2023-10-04 18:35:28 +0200 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2023-10-09 11:10:30 +0530 |
| commit | 81337b9a72dc58a5fa0ae8a042e8cb59f9bdec4a (patch) | |
| tree | f34599eba969d8e06b32e869239dfaea2c726d79 /tools/perf/scripts/python/failed-syscalls-by-pid.py | |
| parent | dmaengine: ste_dma40: Fix PM disable depth imbalance in d40_probe (diff) | |
| download | linux-81337b9a72dc58a5fa0ae8a042e8cb59f9bdec4a.tar.gz linux-81337b9a72dc58a5fa0ae8a042e8cb59f9bdec4a.zip | |
dmaengine: stm32-mdma: abort resume if no ongoing transfer
chan->desc can be null, if transfer is terminated when resume is called,
leading to a NULL pointer when retrieving the hwdesc.
To avoid this case, check that chan->desc is not null and channel is
disabled (transfer previously paused or terminated).
Fixes: a4ffb13c8946 ("dmaengine: Add STM32 MDMA driver")
Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20231004163531.2864160-1-amelie.delaunay@foss.st.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions
