diff options
author | Hema Prathaban <hemaklnce@gmail.com> | 2013-05-15 21:21:17 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2013-05-16 00:05:54 -0400 |
commit | 3030d40b5036a6455f12a4aec81c62dc34eb8be7 (patch) | |
tree | 1c3fdd552bd7d267caf8f6c7260e471dbcb63a79 /drivers/staging/vt6655 | |
parent | c33033dbe00c0f89b93f9859628b2792b0cc1144 (diff) | |
download | op-kernel-dev-3030d40b5036a6455f12a4aec81c62dc34eb8be7.zip op-kernel-dev-3030d40b5036a6455f12a4aec81c62dc34eb8be7.tar.gz |
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>
Diffstat (limited to 'drivers/staging/vt6655')
-rw-r--r-- | drivers/staging/vt6655/hostap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vt6655/hostap.c b/drivers/staging/vt6655/hostap.c index 8417c2f..579220b 100644 --- a/drivers/staging/vt6655/hostap.c +++ b/drivers/staging/vt6655/hostap.c @@ -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", pDevice->dev->name, pDevice->apdev->name); } - kfree(pDevice->apdev); + free_netdev(pDevice->apdev); pDevice->apdev = NULL; pDevice->bEnable8021x = false; pDevice->bEnableHostWEP = false; |