From: Hema Prathaban Date: Wed, 15 May 2013 15:51:17 +0000 (+0530) Subject: staging: vt6655: use free_netdev instead of kfree X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=3030d40b5036a6455f12a4aec81c62dc34eb8be7;p=deliverable%2Flinux.git staging: vt6655: use free_netdev instead of kfree Use free_netdev() instead of kfree() Signed-off-by: Hema Prathaban Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/vt6655/hostap.c b/drivers/staging/vt6655/hostap.c index 8417c2f2c6cf..579220b418b7 100644 --- a/drivers/staging/vt6655/hostap.c +++ b/drivers/staging/vt6655/hostap.c @@ -141,7 +141,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;