aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/trigger/stm32-timer-trigger.c
diff options
context:
space:
mode:
authorPeter Ujfalusi <[email protected]>2019-12-20 13:11:00 +0000
committerVinod Koul <[email protected]>2019-12-23 07:53:24 +0000
commit24461d9792c2c706092805ff1b067628933441bd (patch)
treeefe576215c6ba64ea6239188b14c166dff8682e0 /drivers/iio/trigger/stm32-timer-trigger.c
parentdmaengine: k3dma: Avoid null pointer traversal (diff)
downloadkernel-24461d9792c2c706092805ff1b067628933441bd.tar.gz
kernel-24461d9792c2c706092805ff1b067628933441bd.zip
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 <[email protected]> Reviewed-by: Alexandru Ardelean <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Vinod Koul <[email protected]>
Diffstat (limited to 'drivers/iio/trigger/stm32-timer-trigger.c')
0 files changed, 0 insertions, 0 deletions