]> err.no Git - linux-2.6/blobdiff - net/dccp/probe.c
ftrace: limit trace entries
[linux-2.6] / net / dccp / probe.c
index 6e1df62bd7c9167dc6e123b20c5af79ce30537c3..0bcdc92502794867b7254bc338044555b6493245 100644 (file)
@@ -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);