Skip to content

Commit

Permalink
sunvnet: vnet_port_remove must call unregister_netdev
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dave Kleikamp authored and David S. Miller committed Jul 10, 2013
1 parent e8e2bfd commit aabb987
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ethernet/sun/sunvnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit aabb987

Please sign in to comment.