OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
72381a1
)
staging: vt6655: Use alloc_etherdev() for kzalloc
author
Hema Prathaban
<hemaklnce@gmail.com>
Fri, 17 May 2013 05:44:56 +0000
(11:14 +0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 17 May 2013 22:05:07 +0000
(15:05 -0700)
Use alloc_etherdev() for kzalloc
Signed-off-by: Hema Prathaban <hemaklnce@gmail.com>
Acked-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.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
579220b
..
46f097d
100644
(file)
--- a/
drivers/staging/vt6655/hostap.c
+++ b/
drivers/staging/vt6655/hostap.c
@@
-80,7
+80,7
@@
static int hostap_enable_hostapd(PSDevice pDevice, int rtnl_locked)
DBG_PRT(MSG_LEVEL_DEBUG, KERN_INFO "%s: Enabling hostapd mode\n", dev->name);
- pDevice->apdev =
kzalloc(sizeof(struct net_device), GFP_KERNEL
);
+ pDevice->apdev =
alloc_etherdev(sizeof(*apdev_priv)
);
if (pDevice->apdev == NULL)
return -ENOMEM;