X-Git-Url: http://ftp.safe.ca/?a=blobdiff_plain;f=net%2Fdccp%2Fprobe.c;h=0bcdc92502794867b7254bc338044555b6493245;hb=514bcc66d4072a221a8dfd341a4006385a441918;hp=6e1df62bd7c9167dc6e123b20c5af79ce30537c3;hpb=cdd04d98f6922f5a7ba52714f077140d42bc67c9;p=safe%2Fjmp%2Flinux-2.6 diff --git a/net/dccp/probe.c b/net/dccp/probe.c index 6e1df62..0bcdc92 100644 --- a/net/dccp/probe.c +++ b/net/dccp/probe.c @@ -140,7 +140,7 @@ static ssize_t dccpprobe_read(struct file *file, char __user *buf, goto out_free; cnt = kfifo_get(dccpw.fifo, tbuf, len); - error = copy_to_user(buf, tbuf, cnt); + error = copy_to_user(buf, tbuf, cnt) ? -EFAULT : 0; out_free: vfree(tbuf);