linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v0] fsldma: re-initialize async_tx descriptors
@ 2009-12-14 13:30 Vishnu Suresh
  0 siblings, 0 replies; only message in thread
From: Vishnu Suresh @ 2009-12-14 13:30 UTC (permalink / raw)
  To: linuxppc-dev, linux-kernel, linux-raid, dan.j.williams
  Cc: Vishnu Suresh, B04825, R58472

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

Signed-off-by: Vishnu Suresh <Vishnu@freescale.com>
---
o. Rebased to linux-next as of 20091214

 drivers/dma/fsldma.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/dma/fsldma.c b/drivers/dma/fsldma.c
index 272097a..779c2b6 100644
--- a/drivers/dma/fsldma.c
+++ b/drivers/dma/fsldma.c
@@ -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;
 	}
 
-- 
1.6.4.2

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2009-12-14 13:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-14 13:30 [PATCH v0] fsldma: re-initialize async_tx descriptors Vishnu Suresh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).