kernel/if_ndis: Grab the serializer around if_devstart().
authorSascha Wildner <saw@online.de>
Fri, 5 Apr 2013 03:50:55 +0000 (05:50 +0200)
committerSascha Wildner <saw@online.de>
Fri, 5 Apr 2013 03:50:55 +0000 (05:50 +0200)
Submitted-by: sephe
sys/dev/netif/ndis/if_ndis.c

index d373f3b..02927cf 100644 (file)
@@ -1776,8 +1776,10 @@ ndis_starttask(device_object *d, void *arg)
 
        ifp = arg;
 
+       lwkt_serialize_enter(ifp->if_serializer);
        if (!ifq_is_empty(&ifp->if_snd))
                if_devstart(ifp);
+       lwkt_serialize_exit(ifp->if_serializer);
 }
 
 /*