diff options
author | Peter Ujfalusi <peter.ujfalusi@ti.com> | 2019-12-20 15:11:00 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-09 10:20:00 +0100 |
commit | fdfd8f9ef2d3a35764e8fabc035bd0bbb382e318 (patch) | |
tree | 4840f4c63ac131e21e498ce6553cae826ada26cb /sound | |
parent | e0d2bf5a012974c2f718ce41dbff185666eae11f (diff) | |
download | linux-stable-fdfd8f9ef2d3a35764e8fabc035bd0bbb382e318.tar.gz linux-stable-fdfd8f9ef2d3a35764e8fabc035bd0bbb382e318.tar.bz2 linux-stable-fdfd8f9ef2d3a35764e8fabc035bd0bbb382e318.zip |
dmaengine: virt-dma: Fix access after free in vchan_complete()
commit 24461d9792c2c706092805ff1b067628933441bd upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions