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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2012 16:47:37 +0000 (09:47 -0700)
commite24fd5136ca6d256900392565dfc895d5a2ed9b2
tree59b589583329e2291cf593f24681d2674bda71a6
parent5b77c2c77ade979204e5c6915c61e1d6196f70c5
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/at_hdmac.c