dmaengine: at_hdmac: check that each sg data length is non-null
authorNicolas Ferre <nicolas.ferre@atmel.com>
Tue, 11 Sep 2012 15:21:45 +0000 (17:21 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 10 Oct 2012 02:30:53 +0000 (03:30 +0100)
commit28646c86762c0dc3b23404005cf162abd7e2d3e3
treeb6f98fb91220e23f5ba41ec030c1e057523daa4b
parent684408fa0bc34620a4d62fc6cd545c1c9ae712a9
dmaengine: at_hdmac: check that each sg data length is non-null

commit c456797681db814f4f5b36909e8e94047bf53d9c upstream.

Avoid the construction of a malformed DMA request sent to
the DMA controller.
Log message is for debug only because this condition is unlikely to
append and may only trigger at driver development time.

Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/dma/at_hdmac.c