dect
/
linux-2.6
Archived
13
0
Fork 0

[TCP]: fix memory leak in net/ipv4/tcp_probe.c::tcpprobe_read()

Based upon a patch by Jesper Juhl.

Signed-off-by: James Morris <jmorris@namei.org>
Acked-by: Stephen Hemminger <shemminger@osdl.org>
Acked-by: Jesper Juhl <jesper.juhl@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
James Morris 2006-07-30 20:21:45 -07:00 committed by David S. Miller
parent 9cac2c35e2
commit 118075b3cd
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ static int tcpprobe_open(struct inode * inode, struct file * file)
static ssize_t tcpprobe_read(struct file *file, char __user *buf,
size_t len, loff_t *ppos)
{
int error = 0, cnt;
int error = 0, cnt = 0;
unsigned char *tbuf;
if (!buf || len < 0)