summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHema Prathaban <hemaklnce@gmail.com>2013-05-11 22:39:47 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-06-07 12:49:10 -0700
commit622be96e6177c9bd787ad5f163f0e28f9ab6925f (patch)
tree341eed55472aa32eb07310b200c44c564757e4c4
parentd8259185744d8c07f28a7159532ce01489dd6e34 (diff)
downloadlinux-3.10-622be96e6177c9bd787ad5f163f0e28f9ab6925f.tar.gz
linux-3.10-622be96e6177c9bd787ad5f163f0e28f9ab6925f.tar.bz2
linux-3.10-622be96e6177c9bd787ad5f163f0e28f9ab6925f.zip
staging: vt6656: use free_netdev instead of kfree
commit 0a438d5b381e2bdfd5e02d653bf46fcc878356e3 upstream. use free_netdev() instead of kfree(pDevice->apdev) Signed-off-by: Hema Prathaban <hemaklnce@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/vt6656/hostap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/vt6656/hostap.c b/drivers/staging/vt6656/hostap.c
index 51b5adf3657..df8ea25c5c6 100644
--- a/drivers/staging/vt6656/hostap.c
+++ b/drivers/staging/vt6656/hostap.c
@@ -153,7 +153,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;