diff options
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c | 3 | ||||
-rw-r--r-- | net/ipv4/tcp_probe.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c index 3da9d73d1b52..27c7918e442a 100644 --- a/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c +++ b/net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.c | |||
@@ -177,7 +177,7 @@ static int ct_open(struct inode *inode, struct file *file) | |||
177 | struct ct_iter_state *st; | 177 | struct ct_iter_state *st; |
178 | int ret; | 178 | int ret; |
179 | 179 | ||
180 | st = kmalloc(sizeof(struct ct_iter_state), GFP_KERNEL); | 180 | st = kzalloc(sizeof(struct ct_iter_state), GFP_KERNEL); |
181 | if (st == NULL) | 181 | if (st == NULL) |
182 | return -ENOMEM; | 182 | return -ENOMEM; |
183 | ret = seq_open(file, &ct_seq_ops); | 183 | ret = seq_open(file, &ct_seq_ops); |
@@ -185,7 +185,6 @@ static int ct_open(struct inode *inode, struct file *file) | |||
185 | goto out_free; | 185 | goto out_free; |
186 | seq = file->private_data; | 186 | seq = file->private_data; |
187 | seq->private = st; | 187 | seq->private = st; |
188 | memset(st, 0, sizeof(struct ct_iter_state)); | ||
189 | return ret; | 188 | return ret; |
190 | out_free: | 189 | out_free: |
191 | kfree(st); | 190 | kfree(st); |
diff --git a/net/ipv4/tcp_probe.c b/net/ipv4/tcp_probe.c index f37d5928921a..b76398d1b454 100644 --- a/net/ipv4/tcp_probe.c +++ b/net/ipv4/tcp_probe.c | |||
@@ -130,7 +130,7 @@ static struct jprobe tcp_jprobe = { | |||
130 | .kp = { | 130 | .kp = { |
131 | .symbol_name = "tcp_rcv_established", | 131 | .symbol_name = "tcp_rcv_established", |
132 | }, | 132 | }, |
133 | .entry = JPROBE_ENTRY(jtcp_rcv_established), | 133 | .entry = jtcp_rcv_established, |
134 | }; | 134 | }; |
135 | 135 | ||
136 | static int tcpprobe_open(struct inode * inode, struct file * file) | 136 | static int tcpprobe_open(struct inode * inode, struct file * file) |