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>
This commit is contained in:
		
					parent
					
						
							
								f722406faa
							
						
					
				
			
			
				commit
				
					
						0a438d5b38
					
				
			
		
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -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; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Hema Prathaban
				Hema Prathaban