kern/163098: commit references a PR

dfilter service dfilter at FreeBSD.ORG
Sun Jan 15 21:00:35 UTC 2012


The following reply was made to PR kern/163098; it has been noted by GNATS.

From: dfilter at FreeBSD.ORG (dfilter service)
To: bug-followup at FreeBSD.org
Cc:  
Subject: Re: kern/163098: commit references a PR
Date: Sun, 15 Jan 2012 20:52:40 +0000 (UTC)

 Author: eadler (ports committer)
 Date: Sun Jan 15 20:52:31 2012
 New Revision: 230159
 URL: http://svn.freebsd.org/changeset/base/230159
 
 Log:
   MFC r228343:
   	 - Fix ktrace leakage if error is set
   
   PR:		kern/163098
   Approved by:	sbruno
 
 Modified:
   stable/8/sys/kern/kern_ktrace.c
 Directory Properties:
   stable/8/sys/   (props changed)
 
 Modified: stable/8/sys/kern/kern_ktrace.c
 ==============================================================================
 --- stable/8/sys/kern/kern_ktrace.c	Sun Jan 15 20:52:01 2012	(r230158)
 +++ stable/8/sys/kern/kern_ktrace.c	Sun Jan 15 20:52:31 2012	(r230159)
 @@ -473,7 +473,7 @@ ktrsysret(code, error, retval)
  	ktp = &req->ktr_data.ktr_sysret;
  	ktp->ktr_code = code;
  	ktp->ktr_error = error;
 -	ktp->ktr_retval = retval;		/* what about val2 ? */
 +	ktp->ktr_retval = ((error == 0) ? retval: 0);		/* what about val2 ? */
  	ktr_submitrequest(curthread, req);
  }
  
 _______________________________________________
 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-bugs mailing list