o vn_open() fails to call VOP_CLOSE() if vfs_object_create fails. Ideally

all successful calls to VOP_OPEN() might be reflected in a call to
  VOP_CLOSE().  For now, simply add a comment reflecting this problem;
  this should be fixed at some point.
This commit is contained in:
Robert Watson 2001-10-23 19:09:01 +00:00
parent ac9a258074
commit fc2749a40c

View File

@ -188,6 +188,7 @@ vn_open(ndp, flagp, cmode)
*/
if (vn_canvmio(vp) == TRUE) {
if ((error = vfs_object_create(vp, td, cred)) != 0)
/* XXX: Should VOP_CLOSE() again here. */
goto bad;
}