changeset 11:3968bbb5303d

disable timer before attached
author Thinker K.F. Li <thinker@branda.to>
date Wed, 09 Jul 2008 00:57:33 +0800
parents b853a7227489
children 6bfd60bcd7b8
files vordog.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/vordog.c	Tue Jul 08 23:50:18 2008 +0800
+++ b/vordog.c	Wed Jul 09 00:57:33 2008 +0800
@@ -278,6 +278,8 @@
     vd_softc_t sc;
     struct cdev *_cdev;
 
+    disable_timer();
+
     sc = (vd_softc_t)malloc(sizeof(struct vd_softc), M_TEMP, M_WAITOK);
     if(sc == NULL)
 	return ENOMEM;