diff options
author | Baolin Wang <baolin.wang@linaro.org> | 2019-05-06 15:28:28 +0800 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-05-21 19:23:54 +0530 |
commit | 16d0f85e45b99411ac10cb12cdd9279204a72381 (patch) | |
tree | 94947e6ac04bc6fe9b9d3a230cba3f6bcd8d5fe9 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 492252493ea382d12cb61c52295fc2d088bba28f (diff) |
dmaengine: sprd: Fix the possible crash when getting descriptor status
We will get a NULL virtual descriptor by vchan_find_desc() when the descriptor
has been submitted, that will crash the kernel when getting the descriptor
status.
In this case, since the descriptor has been submitted to process, but it
is not completed now, which means the descriptor is listed into the
'vc->desc_submitted' list now. So we can not get current processing descriptor
by vchan_find_desc(), but the pointer 'schan->cur_desc' will point to the
current processing descriptor, then we can use 'schan->cur_desc' to get
current processing descriptor's status to avoid this issue.
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions