Date: Thu, 26 Sep 2013 17:55:05 +0000 (UTC) From: John-Mark Gurney <jmg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r255892 - head/sys/kern Message-ID: <201309261755.r8QHt58R073496@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: jmg Date: Thu Sep 26 17:55:04 2013 New Revision: 255892 URL: http://svnweb.freebsd.org/changeset/base/255892 Log: it must be the last member, not might... Reviewed by: attilio Approved by: re (delphij, gjb) Modified: head/sys/kern/kern_descrip.c Modified: head/sys/kern/kern_descrip.c ============================================================================== --- head/sys/kern/kern_descrip.c Thu Sep 26 17:54:58 2013 (r255891) +++ head/sys/kern/kern_descrip.c Thu Sep 26 17:55:04 2013 (r255892) @@ -1518,7 +1518,7 @@ fdgrowtable(struct filedesc *fdp, int nf /* * In order to have a valid pattern for fget_unlocked() - * fdp->fd_nfiles might be the last member to be updated, otherwise + * fdp->fd_nfiles must be the last member to be updated, otherwise * fget_unlocked() consumers may reference a new, higher value for * fdp->fd_nfiles before to access the fdp->fd_ofiles array, * resulting in OOB accesses.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309261755.r8QHt58R073496>