Free ofX network device when we're done with it.
authorBen Pfaff <blp@nicira.com>
Mon, 2 Jun 2008 17:14:02 +0000 (10:14 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 3 Jun 2008 03:18:38 +0000 (20:18 -0700)
datapath/dp_dev.c

index 4047e926794b7f5d68305d67e5f0821487375e2f..de72dc50a1c39ebefc1ac0db12b2869b40f35824 100644 (file)
@@ -126,6 +126,7 @@ void dp_dev_destroy(struct datapath *dp)
        dp_dev->dp = NULL;
        synchronize_net();
        unregister_netdev(dp->netdev);
+       free_netdev(dp->netdev);
 }
 
 int is_dp_dev(struct net_device *netdev)