diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2019-12-20 15:11:00 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-12-23 13:23:24 +0530 |
commit | 24461d9792c2c706092805ff1b067628933441bd (patch) | |
tree | efe576215c6ba64ea6239188b14c166dff8682e0 /include/xen | |
parent | 2f42e05b942fe2fbfb9bbc6e34e1dd8c3ce4f3a4 (diff) |
dmaengine: virt-dma: Fix access after free in vchan_complete()
vchan_vdesc_fini() is freeing up 'vd' so the access to vd->tx_result is
via already freed up memory.
Move the vchan_vdesc_fini() after invoking the callback to avoid this.
Fixes: 09d5b702b0f97 ("dmaengine: virt-dma: store result on dma descriptor")
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Reviewed-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20191220131100.21804-1-peter.ujfalusi@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'include/xen')
0 files changed, 0 insertions, 0 deletions