PATCH: ibmtr can unload with timers live

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Fri Jul 11 2003 - 13:06:00 EST


diff -u --new-file --recursive --exclude-from /usr/src/exclude linux-2.5.75/drivers/net/pcmcia/ibmtr_cs.c linux-2.5.75-ac1/drivers/net/pcmcia/ibmtr_cs.c
--- linux-2.5.75/drivers/net/pcmcia/ibmtr_cs.c 2003-07-10 21:10:16.000000000 +0100
+++ linux-2.5.75-ac1/drivers/net/pcmcia/ibmtr_cs.c 2003-07-11 15:22:01.000000000 +0100
@@ -293,9 +293,9 @@
     dev = info->dev;
     {
         struct tok_info *ti = (struct tok_info *)dev->priv;
- del_timer(&(ti->tr_timer));
+ del_timer_sync(&(ti->tr_timer));
     }
- del_timer(&link->release);
+ del_timer_sync(&link->release);
     if (link->state & DEV_CONFIG) {
         ibmtr_release((u_long)link);
         if (link->state & DEV_STALE_CONFIG) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue Jul 15 2003 - 22:00:42 EST