X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fipv4%2Farp.c;fp=net%2Fipv4%2Farp.c;h=c8a3723bc001b0a744d382a4a353c2c902a28ddd;hb=16c70f8c1b54b61c3b951b6fb220df250fe09b32;hp=4749d504c6292188f921b8b296c0394834f2851f;hpb=4e76c8a9fa413ccc09d3f7f664183dcce3555d57;p=linux-2.6.git diff --git a/net/ipv4/arp.c b/net/ipv4/arp.c index 4749d504c..c8a3723bc 100644 --- a/net/ipv4/arp.c +++ b/net/ipv4/arp.c @@ -80,7 +80,6 @@ #include #include #include -#include #include #include #include @@ -1373,12 +1372,11 @@ static int arp_seq_open(struct inode *inode, struct file *file) { struct seq_file *seq; int rc = -ENOMEM; - struct neigh_seq_state *s = kmalloc(sizeof(*s), GFP_KERNEL); + struct neigh_seq_state *s = kzalloc(sizeof(*s), GFP_KERNEL); if (!s) goto out; - memset(s, 0, sizeof(*s)); rc = seq_open(file, &arp_seq_ops); if (rc) goto out_kfree;