diff options
author | Jeff Garzik <jeff@garzik.org> | 2006-07-24 09:38:13 +0200 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-07-24 09:38:13 +0200 |
commit | b71426eb10d904d421b36f51f93c8d0ba558edac (patch) | |
tree | a8c7088a6b89499134e01750652aa55f2baa890f /net/appletalk/ddp.c | |
parent | [libata] sata_promise: comment out duplicate PCI ID (diff) | |
parent | [PATCH] Cpuset: fix ABBA deadlock with cpu hotplug lock (diff) | |
download | linux-b71426eb10d904d421b36f51f93c8d0ba558edac.tar.xz linux-b71426eb10d904d421b36f51f93c8d0ba558edac.zip |
Merge branch 'master' into upstream-fixes
Diffstat (limited to 'net/appletalk/ddp.c')
-rw-r--r-- | net/appletalk/ddp.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/net/appletalk/ddp.c b/net/appletalk/ddp.c index 5ee96d4b40e9..96dc6bb52d14 100644 --- a/net/appletalk/ddp.c +++ b/net/appletalk/ddp.c @@ -227,12 +227,11 @@ static void atif_drop_device(struct net_device *dev) static struct atalk_iface *atif_add_device(struct net_device *dev, struct atalk_addr *sa) { - struct atalk_iface *iface = kmalloc(sizeof(*iface), GFP_KERNEL); + struct atalk_iface *iface = kzalloc(sizeof(*iface), GFP_KERNEL); if (!iface) goto out; - memset(iface, 0, sizeof(*iface)); dev_hold(dev); iface->dev = dev; dev->atalk_ptr = iface; @@ -559,12 +558,11 @@ static int atrtr_create(struct rtentry *r, struct net_device *devhint) } if (!rt) { - rt = kmalloc(sizeof(*rt), GFP_ATOMIC); + rt = kzalloc(sizeof(*rt), GFP_ATOMIC); retval = -ENOBUFS; if (!rt) goto out_unlock; - memset(rt, 0, sizeof(*rt)); rt->next = atalk_routes; atalk_routes = rt; |