svn commit: r192812 - in stable/7/sys: . contrib/pf dev/ath/ath_hal dev/cxgb kern

John Baldwin jhb at FreeBSD.org
Tue May 26 15:30:33 UTC 2009


Author: jhb
Date: Tue May 26 15:30:32 2009
New Revision: 192812
URL: http://svn.freebsd.org/changeset/base/192812

Log:
  MFC: Only use the ABI compat shim for vfs.bufspace if the old buffer is
  smaller than a long.

Modified:
  stable/7/sys/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)
  stable/7/sys/dev/ath/ath_hal/   (props changed)
  stable/7/sys/dev/cxgb/   (props changed)
  stable/7/sys/kern/vfs_bio.c

Modified: stable/7/sys/kern/vfs_bio.c
==============================================================================
--- stable/7/sys/kern/vfs_bio.c	Tue May 26 15:19:04 2009	(r192811)
+++ stable/7/sys/kern/vfs_bio.c	Tue May 26 15:30:32 2009	(r192812)
@@ -291,7 +291,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)


More information about the svn-src-all mailing list