Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 02808b42 authored by Dan Carpenter's avatar Dan Carpenter Committed by Vinod Koul
Browse files

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: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@intel.com>
parent 2dcbdce3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2922,7 +2922,7 @@ pl330_probe(struct amba_device *adev, const struct amba_id *id)

	amba_set_drvdata(adev, pdmac);

	for (i = 0; i <= AMBA_NR_IRQS; i++) {
	for (i = 0; i < AMBA_NR_IRQS; i++) {
		irq = adev->irq[i];
		if (irq) {
			ret = devm_request_irq(&adev->dev, irq,