2002-10-08 19:10:57

by Alan Cox

[permalink] [raw]
Subject: PATCH: Suppose we unload with the timer function live ?

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.2.5.41/drivers/pcmcia/i82365.c linux.2.5.41-ac1/drivers/pcmcia/i82365.c
--- linux.2.5.41/drivers/pcmcia/i82365.c 2002-10-07 22:12:24.000000000 +0100
+++ linux.2.5.41-ac1/drivers/pcmcia/i82365.c 2002-10-07 22:52:57.000000000 +0100
@@ -1631,7 +1631,7 @@
#endif
unregister_ss_entry(&pcic_operations);
if (poll_interval != 0)
- del_timer(&poll_timer);
+ del_timer_sync(&poll_timer);
#ifdef CONFIG_ISA
if (grab_irq != 0)
free_irq(cs_irq, pcic_interrupt);