summaryrefslogtreecommitdiffstats
path: root/iv/orodja/ldmitm/tcp_times.c
diff options
context:
space:
mode:
Diffstat (limited to 'iv/orodja/ldmitm/tcp_times.c')
-rw-r--r--iv/orodja/ldmitm/tcp_times.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/iv/orodja/ldmitm/tcp_times.c b/iv/orodja/ldmitm/tcp_times.c
index 0996857..082d2d8 100644
--- a/iv/orodja/ldmitm/tcp_times.c
+++ b/iv/orodja/ldmitm/tcp_times.c
@@ -81,10 +81,8 @@ static long myioctl (struct file * filep, unsigned int cmd, unsigned long arg) {
tt.rtt_us = tp->rack.rtt_us;
tt.mdev_max_us = tp->mdev_max_us;
fdput(f);
- if (copy_to_user((void *) arg, &tt, sizeof tt)) {
- fdput(f);
+ if (copy_to_user((void *) arg, &tt, sizeof tt))
return -EFAULT;
- }
return 0;
default:
return -EINVAL;