mii: Wrong sizeof
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 3 Jul 2012 08:18:21 +0000 (16:18 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Tue, 3 Jul 2012 08:18:21 +0000 (16:18 +0800)
Pointed-by: swildner@
sys/dev/netif/mii_layer/mii.c

index ec7281b..cb9d1a8 100644 (file)
@@ -284,7 +284,7 @@ void
 mii_probe_args_init(struct mii_probe_args *args,
     ifm_change_cb_t ifmedia_upd, ifm_stat_cb_t ifmedia_sts)
 {
-       memset(args, 0, sizeof(args));
+       memset(args, 0, sizeof(*args));
 
        args->mii_ifmedia_upd = ifmedia_upd;
        args->mii_ifmedia_sts = ifmedia_sts;