aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging
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:46:34 -0700
commitbbb17fe79731a9d580ab2338fe001b900fc29311 (patch)
tree67f5163e0e5e46b88e4f462869aaeaf2d168c593 /drivers/staging
parent8a3e6d89936003e13011ab01dacdf96c66a0e465 (diff)
downloadkernel_samsung_smdk4412-bbb17fe79731a9d580ab2338fe001b900fc29311.zip
kernel_samsung_smdk4412-bbb17fe79731a9d580ab2338fe001b900fc29311.tar.gz
kernel_samsung_smdk4412-bbb17fe79731a9d580ab2338fe001b900fc29311.tar.bz2
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>
Diffstat (limited to 'drivers/staging')
-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 51b5adf..df8ea25 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;