aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6/raw.c
diff options
context:
space:
mode:
authorIngo Oeser <ioe-lkml@rameria.de>2006-03-21 02:01:32 -0500
committerDavid S. Miller <davem@davemloft.net>2006-03-21 02:01:32 -0500
commit0c600eda4b1c9f8f6d1bd643d494db5a29842fbe (patch)
tree3340fda7a4f9f481e7f91ed1f376c7b4bd5e9a6e /net/ipv6/raw.c
parent78c784c47a2be593480cb6c69829a59f0504d575 (diff)
[IPV6]: Nearly complete kzalloc cleanup for net/ipv6
Stupidly use kzalloc() instead of kmalloc()/memset() everywhere where this is possible in net/ipv6/*.c . Signed-off-by: Ingo Oeser <ioe-lkml@rameria.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/raw.c')
-rw-r--r--net/ipv6/raw.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c
index 0f63078af41f..fa1ce0ae123e 100644
--- a/net/ipv6/raw.c
+++ b/net/ipv6/raw.c
@@ -1198,7 +1198,7 @@ static int raw6_seq_open(struct inode *inode, struct file *file)
1198{ 1198{
1199 struct seq_file *seq; 1199 struct seq_file *seq;
1200 int rc = -ENOMEM; 1200 int rc = -ENOMEM;
1201 struct raw6_iter_state *s = kmalloc(sizeof(*s), GFP_KERNEL); 1201 struct raw6_iter_state *s = kzalloc(sizeof(*s), GFP_KERNEL);
1202 if (!s) 1202 if (!s)
1203 goto out; 1203 goto out;
1204 rc = seq_open(file, &raw6_seq_ops); 1204 rc = seq_open(file, &raw6_seq_ops);
@@ -1206,7 +1206,6 @@ static int raw6_seq_open(struct inode *inode, struct file *file)
1206 goto out_kfree; 1206 goto out_kfree;
1207 seq = file->private_data; 1207 seq = file->private_data;
1208 seq->private = s; 1208 seq->private = s;
1209 memset(s, 0, sizeof(*s));
1210out: 1209out:
1211 return rc; 1210 return rc;
1212out_kfree: 1211out_kfree: