Skip to contentSkip to conversation

fsldma: re-initialize async_tx descriptors

PATCH New Vishnu Suresh 1 participant 1 message Dec 14, 2009

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fsldma: re-initialize async_tx descriptors

The async_tx descriptors contains dangling pointers. Hence, re-initialize them to NULL before use.

---
o. Rebased to linux-next as of 20091214

 drivers/dma/fsldma.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
drivers/dma/fsldma.c +2 -0
index 272097a..779c2b6 100644
@@ -384,6 +384,8 @@ static struct fsl_desc_sw *fsl_dma_alloc_descriptor(
 		dma_async_tx_descriptor_init(&desc_sw->async_tx,
 						&fsl_chan->common);
 		desc_sw->async_tx.tx_submit = fsl_dma_tx_submit;
+		desc_sw->async_tx.parent = NULL;
+		desc_sw->async_tx.next = NULL;
 		desc_sw->async_tx.phys = pdesc;
 	}
 
Signature · 1 line
1.6.4.2