Browse files

it must be the last member, not might...

Reviewed by:	attilio
Approved by:	re (delphij, gjb)
  • Loading branch information...
1 parent 74e37ed commit 1dc85910546bedced4f5caca6da78dd02e326f4f @jmgurney jmgurney committed Sep 26, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 sys/kern/kern_descrip.c
@@ -1518,7 +1518,7 @@ fdgrowtable(struct filedesc *fdp, int nfd)
* 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.

0 comments on commit 1dc8591

Please sign in to comment.