dmaengine: vdma: Fix race condition in Non-SG mode
authorKedareswara rao Appana <appana.durga.rao@xilinx.com>
Wed, 6 Apr 2016 05:08:09 +0000 (10:38 +0530)
committerVinod Koul <vinod.koul@intel.com>
Wed, 6 Apr 2016 15:41:15 +0000 (08:41 -0700)
commita65cf5125b49f3d4703c02692609501166e23735
treef52ff642bc52d761c94c932aaa210c585dd62a52
parentb72db4005fe4bf4af16d1436abd3c9d3aac991d1
dmaengine: vdma: Fix race condition in Non-SG mode

When VDMA is configured in  Non-sg mode
Users can queue descriptors greater than h/w configured frames.

Current driver allows the user to queue descriptors upto h/w configured.
Which is wrong for non-sg mode configuration.

This patch fixes this issue.

Signed-off-by: Kedareswara rao Appana <appanad@xilinx.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/xilinx/xilinx_vdma.c