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)
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to