Skip to contentSkip to conversation

dma/timberdale: free_irq() on an error path

PATCH In review Dan Carpenter 2 participants 2 messages Sep 23, 2011 – Oct 7, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dma/timberdale: free_irq() on an error path

There was an error path that skipped the free_irq() step by mistake.

drivers/dma/timb_dma.c +1 -1
index 6dbdf45..a4a398f 100644
@@ -762,7 +762,7 @@ static int __devinit td_probe(struct platform_device *pdev)
 		if ((i % 2) = pchan->rx) {
 			dev_err(&pdev->dev, "Wrong channel configuration\n");
 			err = -EINVAL;
-			goto err_tasklet_kill;
+			goto err_free_irq;
 		}
 
 		td_chan->chan.device = &td->dma;
#1 lore raw
Quoted 9 lines · Dan Carpenter

There was an error path that skipped the free_irq() step by mistake.

drivers/dma/timb_dma.c +0 -0
index 6dbdf45..a4a398f 100644

drivers/dma/timb_dma.c static int __devinit td_probe(struct platform_device *pdev) · line 768

Quoted 8 lines
drivers/dma/timb_dma.c +1 -1
@@ -762,7 +762,7 @@ static int __devinit td_probe(struct platform_device *pdev)
 		if ((i % 2) == pchan->rx) {
 			dev_err(&pdev->dev, "Wrong channel configuration\n");
 			err = -EINVAL;
-			goto err_tasklet_kill;
+			goto err_free_irq;
 		}
 
 		td_chan->chan.device = &td->dma;

Applied thanks

Signature · 1 line
~Vinod