patch-2.3.43 linux/drivers/net/shaper.c

Next file: linux/drivers/net/sis900.c
Previous file: linux/drivers/net/setup.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.42/linux/drivers/net/shaper.c linux/drivers/net/shaper.c
@@ -287,6 +287,7 @@
 {
 	struct shaper *sh=(struct shaper *)data;
 	shaper_kick(sh);
+	timer_exit(&sh->timer);
 }
 
 /*
@@ -404,9 +405,7 @@
 {
 	struct shaper *shaper=dev->priv;
 	shaper_flush(shaper);
-	start_bh_atomic();
-	del_timer(&shaper->timer);
-	end_bh_atomic();
+	del_timer_sync(&shaper->timer);
 	MOD_DEC_USE_COUNT;
 	return 0;
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)