mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
staging: vt6655: use free_netdev instead of kfree
Use free_netdev() instead of kfree() Signed-off-by: Hema Prathaban <hemaklnce@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c33033dbe0
commit
3030d40b50
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ static int hostap_disable_hostapd(PSDevice pDevice, int rtnl_locked)
|
||||||
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "%s: Netdevice %s unregistered\n",
|
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "%s: Netdevice %s unregistered\n",
|
||||||
pDevice->dev->name, pDevice->apdev->name);
|
pDevice->dev->name, pDevice->apdev->name);
|
||||||
}
|
}
|
||||||
kfree(pDevice->apdev);
|
free_netdev(pDevice->apdev);
|
||||||
pDevice->apdev = NULL;
|
pDevice->apdev = NULL;
|
||||||
pDevice->bEnable8021x = false;
|
pDevice->bEnable8021x = false;
|
||||||
pDevice->bEnableHostWEP = false;
|
pDevice->bEnableHostWEP = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue