]> git.saurik.com Git - apple/xnu.git/blobdiff - bsd/net/devtimer.c
xnu-4903.221.2.tar.gz
[apple/xnu.git] / bsd / net / devtimer.c
index d0b55d2519b770885b3d0b038d20a7bd1ec368e5..45eb31f473cbd8bd50eb5f19b36798e2cd30b98e 100644 (file)
@@ -176,11 +176,10 @@ devtimer_create(devtimer_process_func process_func, void * arg0)
 {
     devtimer_ref       timer;
 
-    timer = _MALLOC(sizeof(*timer), M_DEVTIMER, M_WAITOK);
+    timer = _MALLOC(sizeof(*timer), M_DEVTIMER, M_WAITOK | M_ZERO);
     if (timer == NULL) {
        return (timer);
     }
-    bzero(timer, sizeof(*timer));
     devtimer_retain(timer);
     timer->dt_callout = thread_call_allocate(devtimer_process, timer);
     if (timer->dt_callout == NULL) {