Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 May 2009 16:20:07 GMT
From:      dfilter@FreeBSD.ORG (dfilter service)
To:        freebsd-amd64@FreeBSD.org
Subject:   Re: amd64/134786: commit references a PR
Message-ID:  <200905211620.n4LGK7uX033388@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR amd64/134786; it has been noted by GNATS.

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@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@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-src-all
 To unsubscribe, send any mail to "svn-src-all-unsubscribe@freebsd.org"
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905211620.n4LGK7uX033388>