amd64/134786: commit references a PR
dfilter service
dfilter at FreeBSD.ORG
Thu May 21 16:20:11 UTC 2009
The following reply was made to PR amd64/134786; it has been noted by GNATS.
From: dfilter at FreeBSD.ORG (dfilter service)
To: bug-followup at FreeBSD.org
Cc:
Subject: Re: amd64/134786: commit references a PR
Date: Thu, 21 May 2009 16:18:55 +0000 (UTC)
Author: jhb
Date: Thu May 21 16:18:45 2009
New Revision: 192543
URL: http://svn.freebsd.org/changeset/base/192543
Log:
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
Modified:
head/sys/kern/vfs_bio.c
Modified: head/sys/kern/vfs_bio.c
==============================================================================
--- head/sys/kern/vfs_bio.c Thu May 21 15:30:59 2009 (r192542)
+++ head/sys/kern/vfs_bio.c Thu May 21 16:18:45 2009 (r192543)
@@ -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)
_______________________________________________
svn-src-all at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscribe at freebsd.org"
More information about the freebsd-amd64
mailing list