summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorHema Prathaban <hemaklnce@gmail.com>2013-05-11 17:09:47 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-05-13 12:52:33 (GMT)
commit0a438d5b381e2bdfd5e02d653bf46fcc878356e3 (patch)
tree3d26db2481868ff9f4d81ae45b918afb0ab3ff06 /drivers
parentf722406faae2d073cc1d01063d1123c35425939e (diff)
downloadlinux-fsl-qoriq-0a438d5b381e2bdfd5e02d653bf46fcc878356e3.tar.xz
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')
-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 f4f1bf7..c699a30 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;