diff options
Diffstat (limited to 'net/ipv4/udp.c')
| -rw-r--r-- | net/ipv4/udp.c | 3 | 
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 9bfcddad695..f136cec96d9 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c @@ -1468,11 +1468,10 @@ static int udp_seq_open(struct inode *inode, struct file *file)  	struct udp_seq_afinfo *afinfo = PDE(inode)->data;  	struct seq_file *seq;  	int rc = -ENOMEM; -	struct udp_iter_state *s = kmalloc(sizeof(*s), GFP_KERNEL); +	struct udp_iter_state *s = kzalloc(sizeof(*s), GFP_KERNEL);  	if (!s)  		goto out; -	memset(s, 0, sizeof(*s));  	s->family		= afinfo->family;  	s->seq_ops.start	= udp_seq_start;  	s->seq_ops.next		= udp_seq_next;  |