Permalink
Browse files

Should probably call dev_close on the device before freeing it.

  • Loading branch information...
1 parent b51bfd1 commit cba56163892e416c9e6d9e144861fcc021d37f3d @ice799 ice799 committed Apr 23, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 khial_main.c
View
@@ -336,6 +336,7 @@ static int setup_cdev(struct khial *adapter, int idx)
static void khial_dev_free(struct net_device *dev)
{
+ dev_close(dev);
unregister_netdev(dev);
free_netdev(dev);
}

0 comments on commit cba5616

Please sign in to comment.