diff options
author | jhb <jhb@FreeBSD.org> | 2009-05-21 16:18:45 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2009-05-21 16:18:45 +0000 |
commit | 35ba8bce412aeba9e48d1a6038cb527e70425c26 (patch) | |
tree | b23fd7369b6eabbed71fbc06354de730f337fa97 /sys/kern/vfs_bio.c | |
parent | fe8ccf4f67ac7dba689db63bc2eeebf8c71b5aca (diff) | |
download | FreeBSD-src-35ba8bce412aeba9e48d1a6038cb527e70425c26.zip FreeBSD-src-35ba8bce412aeba9e48d1a6038cb527e70425c26.tar.gz |
Only use the ABI compat shim for vfs.bufspace if the old buffer is smaller
than a long.
PR: amd64/134786
Submitted by: Emil Mikulic emikulic| gmail
MFC after: 3 days
Diffstat (limited to 'sys/kern/vfs_bio.c')
-rw-r--r-- | sys/kern/vfs_bio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index 16df889..a3c3e97 100644 --- a/sys/kern/vfs_bio.c +++ b/sys/kern/vfs_bio.c @@ -293,7 +293,7 @@ sysctl_bufspace(SYSCTL_HANDLER_ARGS) long lvalue; int ivalue; - if (sizeof(int) == sizeof(long) || req->oldlen == sizeof(long)) + if (sizeof(int) == sizeof(long) || req->oldlen >= sizeof(long)) return (sysctl_handle_long(oidp, arg1, arg2, req)); lvalue = *(long *)arg1; if (lvalue > INT_MAX) |