sunvnet: vnet_port_remove must call unregister_netdev
authorDave Kleikamp <dave.kleikamp@oracle.com>
Mon, 1 Jul 2013 21:49:22 +0000 (16:49 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Jul 2013 20:35:52 +0000 (13:35 -0700)
The missing call to unregister_netdev() leaves the interface active
after the driver is unloaded by rmmod.

Signed-off-by: Dave Kleikamp <dave.kleikamp@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sun/sunvnet.c

index 1df0ff3..3df5684 100644 (file)
@@ -1239,6 +1239,8 @@ static int vnet_port_remove(struct vio_dev *vdev)
                dev_set_drvdata(&vdev->dev, NULL);
 
                kfree(port);
+
+               unregister_netdev(vp->dev);
        }
        return 0;
 }