DragonFly-2.3.0.246.g8e0ed master sys/vfs/specfs spec_vnops.c

Nicolas Thery nth at crater.dragonflybsd.org
Sat Feb 21 10:10:23 PST 2009


commit 8e0ede57151dfffe3d785fc1f3c1e8bcf2c848dc
Author: Nicolas Thery <nthery at gmail.com>
Date:   Sat Feb 21 13:05:27 2009 +0100

    Potential fix for panic during shutdown.
    
    When a tty is revoked, the opencount of its associated vnode is forced to
    zero and calling vop_stdclose() on this vnode causes a panic.  Call therefore
    vop_stdclose() from spec_close() if and only if the opencount is strictly
    positive.
    
    I haven't managed to reproduce the original panic locally, hence the
    "potential" above.
    
    Reported-by: Thomas Nikolajsen <thomas.nikolajsen at mail.dk>
    Dragonfly-bug: <http://bugs.dragonflybsd.org/issue715>

Summary of changes:
 sys/vfs/specfs/spec_vnops.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/8e0ede57151dfffe3d785fc1f3c1e8bcf2c848dc


-- 
DragonFly BSD source repository





More information about the Commits mailing list