Subject: kern/36162: genfs_node_destroy breaks error paths
To: None <kern-bug-people@netbsd.org, gnats-admin@netbsd.org,>
From: None <ad@netbsd.org>
List: netbsd-bugs
Date: 04/17/2007 11:30:01
>Number:         36162
>Category:       kern
>Synopsis:       genfs_node_destroy breaks error paths
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Apr 17 11:30:01 +0000 2007
>Originator:     Andrew Doran
>Release:        NetBSD 4.99.17
>Organization:
The NetBSD Project
>Environment:
N/A
>Description:
[Resending - the web form ate my earlier PR]

pooka@ noted that genfs_node_destroy can be called (due to error)
while the inode is not fully initialized. genfs_node_init may not
always have been called on it.
>How-To-Repeat:
Code inspection.
>Fix:
Call genfs_node_init immediatley after allocating the inode.