MLK-14976: dma: virt-dma: free description after callback
authorRobin Gong <yibin.gong@nxp.com>
Wed, 24 May 2017 08:28:43 +0000 (16:28 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:22:24 +0000 (15:22 -0500)
commite6cfc49b952749e22f58801857ff6a836b284e10
tree7f9e3f0313c3bb056e0368e3ae3ea6de07c9cd72
parenta762d60d3936fc360d97cbb94b6b6769cec6a803
MLK-14976: dma: virt-dma: free description after callback

Some drivers may access dma_async_tx_descriptor in callback such as
tty/serial/fsl_lpuart.c, but the description has already been freed
before callback, memory corrupt here. Move the free description
behind of callback.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
drivers/dma/virt-dma.c