aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
diff options
context:
space:
mode:
authorJohn Stultz <[email protected]>2019-12-18 19:09:06 +0000
committerVinod Koul <[email protected]>2019-12-23 07:51:14 +0000
commit2f42e05b942fe2fbfb9bbc6e34e1dd8c3ce4f3a4 (patch)
treec49ab418f77b856be416a1a17283359463d842c1 /drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
parentdmaengine: dma-jz4780: Also break descriptor chains on JZ4725B (diff)
downloadkernel-2f42e05b942fe2fbfb9bbc6e34e1dd8c3ce4f3a4.tar.gz
kernel-2f42e05b942fe2fbfb9bbc6e34e1dd8c3ce4f3a4.zip
dmaengine: k3dma: Avoid null pointer traversal
In some cases we seem to submit two transactions in a row, which causes us to lose track of the first. If we then cancel the request, we may still get an interrupt, which traverses a null ds_run value. So try to avoid starting a new transaction if the ds_run value is set. While this patch avoids the null pointer crash, I've had some reports of the k3dma driver still getting confused, which suggests the ds_run/ds_done value handling still isn't quite right. However, I've not run into an issue recently with it so I think this patch is worth pushing upstream to avoid the crash. Signed-off-by: John Stultz <[email protected]> [add ss tag] Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c')
0 files changed, 0 insertions, 0 deletions