From: Ben Pfaff Date: Mon, 2 Jun 2008 17:14:02 +0000 (-0700) Subject: Free ofX network device when we're done with it. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=913e36d3f658531b83da86f0ff219e62e04c51da;p=openvswitch Free ofX network device when we're done with it. --- diff --git a/datapath/dp_dev.c b/datapath/dp_dev.c index 4047e926..de72dc50 100644 --- a/datapath/dp_dev.c +++ b/datapath/dp_dev.c @@ -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)