projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c33033d
)
staging: vt6655: use free_netdev instead of kfree
author
Hema Prathaban
<hemaklnce@gmail.com>
Wed, 15 May 2013 15:51:17 +0000
(21:21 +0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 16 May 2013 04:05:54 +0000
(
00:05
-0400)
Use free_netdev() instead of kfree()
Signed-off-by: Hema Prathaban <hemaklnce@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/hostap.c
patch
|
blob
|
history
diff --git
a/drivers/staging/vt6655/hostap.c
b/drivers/staging/vt6655/hostap.c
index 8417c2f2c6cfdbf2208a039b626b60ce56524134..579220b418b71866fd79787e5feabdbd1f5b4c8e 100644
(file)
--- 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;