From: Hema Prathaban Date: Sat, 11 May 2013 17:09:47 +0000 (+0530) Subject: staging: vt6656: use free_netdev instead of kfree X-Git-Tag: upstream/snapshot3+hdmi~5043^2~23 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0a438d5b381e2bdfd5e02d653bf46fcc878356e3;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git staging: vt6656: use free_netdev instead of kfree use free_netdev() instead of kfree(pDevice->apdev) Signed-off-by: Hema Prathaban Cc: stable Signed-off-by: Greg Kroah-Hartman --- 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;