aboutsummaryrefslogtreecommitdiff
path: root/drivers
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:52:25 -0700
commit58f965f674d22d5327f01e34628944c230317ddd (patch)
tree6b6da6493fd790ffa8ce458185b0be8d13b5af3b /drivers
parent266478dbe978a34d1d75ac5fb62415b36f2af1d7 (diff)
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')
-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 bc5e9da4758..a94e66f52b3 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;