intel_mid_dma: fix the WARN_ONs
authorKoul, Vinod <vinod.koul@intel.com>
Mon, 4 Oct 2010 10:38:25 +0000 (10:38 +0000)
committerDan Williams <dan.j.williams@intel.com>
Thu, 7 Oct 2010 22:03:43 +0000 (15:03 -0700)
commit8b6492231d2a92352a6371eebd622e3bc824a663
tree875a69042151b5c317a9dc4b89a63bbbfbd5c834
parent576e3c394a6c427c9a1378ec88ef7eb97e731992
intel_mid_dma: fix the WARN_ONs

Moved the WARN_ON to BUG_ON, as WARN_ON if hit,
can cause null pointer derefrences

Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dma/intel_mid_dma.c