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 1df0ff3839e8f44e4125588009d20a74d41773f3..3df56840a3b9282c7ab308682d448bba6dac53f4 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;
 }