aboutsummaryrefslogtreecommitdiff
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-05-13 05:52:33 -0700
commit0a438d5b381e2bdfd5e02d653bf46fcc878356e3 (patch)
tree3d26db2481868ff9f4d81ae45b918afb0ab3ff06 /drivers/staging
parentf722406faae2d073cc1d01063d1123c35425939e (diff)
staging: vt6656: use free_netdev instead of kfree
use free_netdev() instead of kfree(pDevice->apdev) Signed-off-by: Hema Prathaban <hemaklnce@gmail.com> Cc: stable <stable@vger.kernel.org> 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 f4f1bf7a30f..c699a3058b3 100644
--- a/drivers/staging/vt6656/hostap.c
+++ b/drivers/staging/vt6656/hostap.c
@@ -133,7 +133,7 @@ static int hostap_disable_hostapd(struct vnt_private *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;