]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 2 Oct 2012 17:30:10 +0000 (10:30 -0700)
commit87a34202d070db674e215091e98d21881af56f22
tree1508216f463095a288c32acf60d7b7b8cf7a3b29
parent8dd47c73d93505aee90bc56d56965ef82b535f93
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