diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2024-08-21 19:43:08 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2024-08-21 19:43:08 +0200 |
commit | 5c1008b962676fe82baa48052c4fc71b3fb4c3b9 (patch) | |
tree | b696165cf0f6af96bbddc51f103a280cb5ca9786 /iv | |
parent | jedrni modul tcp_times (diff) | |
download | r-5c1008b962676fe82baa48052c4fc71b3fb4c3b9.tar r-5c1008b962676fe82baa48052c4fc71b3fb4c3b9.tar.gz r-5c1008b962676fe82baa48052c4fc71b3fb4c3b9.tar.bz2 r-5c1008b962676fe82baa48052c4fc71b3fb4c3b9.tar.lz r-5c1008b962676fe82baa48052c4fc71b3fb4c3b9.tar.xz r-5c1008b962676fe82baa48052c4fc71b3fb4c3b9.tar.zst r-5c1008b962676fe82baa48052c4fc71b3fb4c3b9.zip |
Diffstat (limited to 'iv')
-rw-r--r-- | iv/orodja/ldmitm/tcp_times.c | 4 |
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; |