[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1334249091-7605-1-git-send-email-mjr@cs.wisc.edu>
Date: Thu, 12 Apr 2012 11:44:51 -0500
From: mjr@...wisc.edu
To: davem@...emloft.net
Cc: sboyd@...eaurora.org, ben@...tec.co.uk, netdev@...r.kernel.org,
Matt Renzelmann <mjr@...wisc.edu>
Subject: [PATCH] ks8851: Cancel any pending IRQ work
From: Matt Renzelmann <mjr@...wisc.edu>
An unexpected/spurious interrupt may cause the irq_work queue to
execute during or after module unload, which can cause a crash. It
should be canceled.
Signed-off-by: Matt Renzelmann <mjr@...wisc.edu>
---
drivers/net/ethernet/micrel/ks8851.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/ethernet/micrel/ks8851.c b/drivers/net/ethernet/micrel/ks8851.c
index c722aa6..ab46953 100644
--- a/drivers/net/ethernet/micrel/ks8851.c
+++ b/drivers/net/ethernet/micrel/ks8851.c
@@ -1540,6 +1540,7 @@ static int __devexit ks8851_remove(struct spi_device *spi)
dev_info(&spi->dev, "remove\n");
unregister_netdev(priv->netdev);
+ cancel_work_sync(&priv->irq_work);
free_irq(spi->irq, priv);
free_netdev(priv->netdev);
--
1.7.5.4
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists