summaryrefslogtreecommitdiff
path: root/sys/miscfs/fuse/fuse_vnops.c
diff options
context:
space:
mode:
authorSylvestre Gallon <syl@cvs.openbsd.org>2013-09-17 19:07:12 +0000
committerSylvestre Gallon <syl@cvs.openbsd.org>2013-09-17 19:07:12 +0000
commit904cb61c0591a4e1072e961d05cfdf7c00b544c1 (patch)
treece7b50123ee674d9252ff8fa22189e5c5281ecbf /sys/miscfs/fuse/fuse_vnops.c
parent434a4be19f84c9e04e3fc9e965555dd3ba5f1066 (diff)
size_t could not be < 0.
Thanks to Pedro Martelletto.
Diffstat (limited to 'sys/miscfs/fuse/fuse_vnops.c')
-rw-r--r--sys/miscfs/fuse/fuse_vnops.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/miscfs/fuse/fuse_vnops.c b/sys/miscfs/fuse/fuse_vnops.c
index 74c0fd96af8..4ac8fb93794 100644
--- a/sys/miscfs/fuse/fuse_vnops.c
+++ b/sys/miscfs/fuse/fuse_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fuse_vnops.c,v 1.4 2013/08/10 00:12:45 syl Exp $ */
+/* $OpenBSD: fuse_vnops.c,v 1.5 2013/09/17 19:07:11 syl Exp $ */
/*
* Copyright (c) 2012-2013 Sylvestre Gallon <ccna.syl@gmail.com>
*
@@ -898,7 +898,7 @@ fusefs_write(void *v)
break;
diff = len - fbuf->fb_io_len;
- if (diff < 0) {
+ if (fbuf->fb_io_len > len) {
error = EINVAL;
break;
}