dma: pl330: off by one in pl330_probe()
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 8 Nov 2013 09:50:24 +0000 (12:50 +0300)
committerVinod Koul <vinod.koul@intel.com>
Wed, 13 Nov 2013 13:19:43 +0000 (18:49 +0530)
commit02808b427689d46136d9662c5013145f70119f42
tree5c2e323b7d9504fe7368d2ac4e175033a6ad850c
parent2dcbdce3610a1ba190a74b782b9f7f1f7f976325
dma: pl330: off by one in pl330_probe()

There are only AMBA_NR_IRQS (2) elements in adev->irq[].  This code
maybe works if the there is a zero directly after the array.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/pl330.c