http://git.etherboot.org
/
people
/
andreif
/
gpxe.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
389c63d
)
convert to zalloc
author
Holger Lubitz
<hal@duncan.ol.sub.de>
Fri, 6 Jul 2007 19:08:54 +0000
(21:08 +0200)
committer
Holger Lubitz
<hal@duncan.ol.sub.de>
Fri, 6 Jul 2007 19:08:54 +0000
(21:08 +0200)
src/net/udp/dhcp.c
patch
|
blob
|
history
diff --git
a/src/net/udp/dhcp.c
b/src/net/udp/dhcp.c
index
81454b0
..
07dd923
100644
(file)
--- a/
src/net/udp/dhcp.c
+++ b/
src/net/udp/dhcp.c
@@
-787,10
+787,9
@@
int start_dhcp ( struct job_interface *job, struct net_device *netdev,
int rc;
/* Allocate and initialise structure */
- dhcp =
m
alloc ( sizeof ( *dhcp ) );
+ dhcp =
z
alloc ( sizeof ( *dhcp ) );
if ( ! dhcp )
return -ENOMEM;
- memset ( dhcp, 0, sizeof ( *dhcp ) );
dhcp->refcnt.free = dhcp_free;
job_init ( &dhcp->job, &dhcp_job_operations, &dhcp->refcnt );
xfer_init ( &dhcp->xfer, &dhcp_xfer_operations, &dhcp->refcnt );