Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern In fd_abort(), reset ff_exclose to preserve invaria...



details:   https://anonhg.NetBSD.org/src/rev/3662896ce871
branches:  trunk
changeset: 789732:3662896ce871
user:      pooka <pooka%NetBSD.org@localhost>
date:      Thu Sep 05 12:23:07 2013 +0000

description:
In fd_abort(), reset ff_exclose to preserve invariants expected by fd_free()

diffstat:

 sys/kern/kern_descrip.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 5416e8e7055a -r 3662896ce871 sys/kern/kern_descrip.c
--- a/sys/kern/kern_descrip.c   Thu Sep 05 12:22:10 2013 +0000
+++ b/sys/kern/kern_descrip.c   Thu Sep 05 12:23:07 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern_descrip.c,v 1.219 2012/11/24 15:07:44 christos Exp $      */
+/*     $NetBSD: kern_descrip.c,v 1.220 2013/09/05 12:23:07 pooka Exp $ */
 
 /*-
  * Copyright (c) 2008, 2009 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_descrip.c,v 1.219 2012/11/24 15:07:44 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_descrip.c,v 1.220 2013/09/05 12:23:07 pooka Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1170,6 +1170,7 @@
 
        fdp = p->p_fd;
        ff = fdp->fd_dt->dt_ff[fd];
+       ff->ff_exclose = false;
 
        KASSERT(fd >= NDFDFILE || ff == (fdfile_t *)fdp->fd_dfdfile[fd]);
 



Home | Main Index | Thread Index | Old Index