Patchwork Fix request_irq/free_irq mismatch

login
register
mail settings
Submitter mjr@cs.wisc.edu
Date April 19, 2012, 4:46 p.m.
Message ID <1334853977-11243-1-git-send-email-mjr@cs.wisc.edu>
Download mbox | patch
Permalink /patch/153838/
State Superseded
Delegated to: David Miller
Headers show

Comments

mjr@cs.wisc.edu - April 19, 2012, 4:46 p.m.
From: Matt Renzelmann <mjr@cs.wisc.edu>

The dev_id parameter passed to free_irq needs to match the one passed
to the corresponding request_irq.

Signed-off-by: Matt Renzelmann <mjr@cs.wisc.edu>
---
 drivers/net/ethernet/micrel/ks8851.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/net/ethernet/micrel/ks8851.c b/drivers/net/ethernet/micrel/ks8851.c
index e5dc075..a8b7d5b 100644
--- a/drivers/net/ethernet/micrel/ks8851.c
+++ b/drivers/net/ethernet/micrel/ks8851.c
@@ -1524,7 +1524,7 @@  static int __devinit ks8851_probe(struct spi_device *spi)
 
 
 err_netdev:
-	free_irq(ndev->irq, ndev);
+	free_irq(ndev->irq, ks);
 
 err_id:
 err_irq: