Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0a438d5b authored by Hema Prathaban's avatar Hema Prathaban Committed by Greg Kroah-Hartman
Browse files

staging: vt6656: use free_netdev instead of kfree



use free_netdev() instead of kfree(pDevice->apdev)

Signed-off-by: default avatarHema Prathaban <hemaklnce@gmail.com>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f722406f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;