diff options
author | 2013-09-17 19:07:11 +0000 | |
---|---|---|
committer | 2013-09-17 19:07:11 +0000 | |
commit | d01a71648e611dfb3f36bdd5b610f05bfdb550d7 (patch) | |
tree | 0dc58e1ec6bfc60d56ff667ef73dceefa368afbe /sys/miscfs | |
parent | Add support for AMD Family 15h Models 10h-1Fh Processors. (diff) | |
download | wireguard-openbsd-d01a71648e611dfb3f36bdd5b610f05bfdb550d7.tar.xz wireguard-openbsd-d01a71648e611dfb3f36bdd5b610f05bfdb550d7.zip |
size_t could not be < 0.
Thanks to Pedro Martelletto.
Diffstat (limited to 'sys/miscfs')
-rw-r--r-- | sys/miscfs/fuse/fuse_vnops.c | 4 |
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; } |