]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerVinod Koul <vinod.koul@linux.intel.com>
Fri, 14 Sep 2012 02:56:40 +0000 (08:26 +0530)
commitc456797681db814f4f5b36909e8e94047bf53d9c
treee50e29b88da24c9145a212611bb4ea249473d263
parentc618a9be0e8c0f36baee2560860a0118a428fb26
dmaengine: at_hdmac: check that each sg data length is non-null

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>
Cc: Stable <stable@vger.kernel.org> [2.6.31+]
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
drivers/dma/at_hdmac.c