Author: kib
Date: Wed Jun 10 16:17:38 2009
New Revision: 193931
URL: http://svn.freebsd.org/changeset/base/193931

Log:
  Do not leak the state->ls_lock after VI_DOOMED check introduced
  in the r192683.
  
  Reported by:  pho
  Submitted by: jhb

Modified:
  head/sys/kern/kern_lockf.c

Modified: head/sys/kern/kern_lockf.c
==============================================================================
--- head/sys/kern/kern_lockf.c  Wed Jun 10 15:48:34 2009        (r193930)
+++ head/sys/kern/kern_lockf.c  Wed Jun 10 16:17:38 2009        (r193931)
@@ -647,6 +647,7 @@ lf_advlockasync(struct vop_advlockasync_
        VI_LOCK(vp);
        if (vp->v_iflag & VI_DOOMED) {
                VI_UNLOCK(vp);
+               sx_xunlock(&state->ls_lock);
                lf_free_lock(lock);
                return (ENOENT);
        }
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to